Wednesday, 14 August 2013

Google Analytics iframe+query string tracking

Google Analytics iframe+query string tracking

I wondered if anyone can point me in the right direction?
I have an iframe sitting on us.website.com, embedded inside a page on
www.website.com - and I need to track each query string in google
analytics for the us.website.com page.
i.e.
I have the query string data passing from the URL (address bar) to the
iframe so when a form is submitted a tracking code identifies where the
user came from.
www.website.com/offers/offer.html?src=source1 (form passes source1 as the
entry source) www.website.com/offers/offer.html?src=source2 (form passes
source2 as the entry source)
Currently, all of the (us.website.com/offers/offer.asp) stats are shown
under this one .asp page - but I need it to show stats for each query
string.
i.e.
us.website.com/offers/offer.asp?src=source1 - individual stats
us.website.com/offers/offer.asp?src=source2 - individual stats
Is there a way to do this without building two separate .asp pages on the
us.website.com domain??
Thanks in advance!

No comments:

Post a Comment