Frequently asked questions


← TO THE LIST OF QUESTIONS

How do I track an iFrame click?

Examples below require knowledge of Javascript and CSS. Tilda Customer Support does not assist in code-related questions.

Embed the following code:

<script src="https://cdn.rawgit.com/vincepare/iframeTracker-jquery/master/dist/jquery.iframetracker.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#rec62590959 iframe').iframeTracker({
blurCallback: function(){
alert("Video played");
}
});
});
</script>

Replace #rec62590959 with the ID of your block.

You can also replace the alert("Video played") with a value to be sent as a goal to Yandex.Metrika: yaCounterXXXXXX.reachGoal('TARGET_NAME')


Was this answer helpful?
No
Yes




Report abuse
If you believe that any website made on Tilda is violating your rights, file a compliant by filling out this form
How to contact our support
To find out more about the platform features, use the feedback form in your Tilda account, or contact us via email team@tilda.cc
Accounting docs
To get the supporting documentation and proof of payment, send your request to docs@tilda.cc
Made on
Tilda