I have a website which effectively displays a different site based on a URL Query Paramater existing:
For Example:
www.mysite.com/?i=1 (will display "Site A")
www.mysite.com/?i=2 (will displays "Site B")
... and so-on ...
I need to setup a completely different set of reports for each site based on that query paramater, but can’t see how (or if) this can be done.
Also, it is possible that the URL could display as http://www.mystring.com/?something=99&i=1, so needs to be on the paramater existing, not the url pattern.
Further to this .. I am able to control the inclusion of the appropriate javascript based on which Query value is passed in, I just can’t work out how to create individual profiles (thus seperate scripts) for each site.
I hope this makes sense.
Many Thanks in advance.
Jason
One approach is to use the same javascript on all the sites, and use profile filters to track the different sites. (See http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033162 for more info about filters)
To do this, you’ll need to
custom filter, thatincludesthe filter fieldRequest URI, with a filter pattern like.*i=1$assuming the i=1 parameter is always at the end. (more info about filters at https://support.google.com/googleanalytics/bin/answer.py?hl=en&utm_id=ad&answer=55582)Be aware that filters aren’t retroactive — they only apply to new tracking data coming in, not data that’s already been recorded.
Also be aware that there are limits to the number of profiles you can have per analytics account — it used to be 50 profiles, but we were able to get that bumped to 100 through a special request.