Can I track an IFRAME widget using Google Analytics?

We are going to launch JS-based widgets that webmasters (any site) will post on their site by inserting a small piece of code, for example:

<iframe src="SOURCE_PATH" frameborder="0" width="300px" height="150px"  scrolling="no" id="cd_frame"></iframe>

There are three links inside the widget, and we need to track how many clicks occur on them from external sites where the widget will be used.

If I just put the code that GA provides, will it work? OR do I need to make any changes?

Thanks.

+3
source share
1 answer

iframe, Google Analytics . , iframe . url iframe, .

,

<iframe src="SOURCE_PATH?uniquetrackingid=123" frameborder="0" width="300px" 
height="150px" scrolling="no" id="cd_frame"></iframe>

http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55585

+6

Source: https://habr.com/ru/post/1711897/


All Articles