We have any iframed page (iframe.demo.com) inside our website (www.demo.com). With Google Analytics you need to make sure the tracker inside the iframe is properly loaded to make sure it doesn't take the referrer for the regular website (www.demo.com). We don't want our referrers in this example to say www.demo.com.
Is there a smart/ easy way to do this with Tealium?
Thanks for sending me the info. To my understanding this would solve part of the solution.
This technique suggests that the parent page GA code is loaded before the iframed page GA code does. What if the iframed code is loaded before the parent page code is loaded? Theoretically you would have to wait running the GA code in the iframe until the parent GA code is executed.
With Tealium my GA code loads on DOMready, so the delay on the parent page could be there.
This is getting pretty specific. I would recommend reaching out to your Account Manager with a URL where we can see your set up.
The tag will fire on DOM ready but it will load earlier on page load. So depending on where you are loading utag.js and when the iframe loads the above methods may still work without problem.
Also, if you're using legacy GA that method will still work. You just need to change it to:
_gaq = _gaq || ;
_gaq.push(['_setReferrerOverride', 'NEW URL TO SET AS REFERRER']);
Then when the tag does load it will just use the "_gaq" array that you previously set.
Our team will be able to look deeper if we had a URL or an example of how your page is set up.