Vote count:
0
We're giving our customers signup widgets which they implement in an iframe on their site and we're also promoting these sites using AdWords.
Is there any way to track visits to the main page by only adding code into the iframe, preferably using auto-tagging?
I was experimenting with grabbing the querystring from the parent window and adding it manually to the page parameter in the iframe GA code but that didn't really work out:
referrer_parameters = document.referrer.split(/\?(.*)/)[1];
page = window.location.pathname + '?' + referrer_parameters;
ga('send', 'pageview', {
'page': page,
});
asked 1 min ago
AdWords Tracking in iframe
Aucun commentaire:
Enregistrer un commentaire