angst:
Zencart 1.38
Simple google analytics 1.2.2
Use older urchin = no
I searched the thread and am still confused how to set up alias domains. Posts ~#1015 seem relevant but adds to my confusion.
I have mysite.com and anotherurl.com that points to mysite.com. The redirect is set to point to mysite.com by the hosting company and not by any settings on my end (like htaccess).
Im simply trying to track how many people directly typed in anotherurl.com to get to mysite.com
Is this actually already being tracked in analytics as a “traffic source”?
If I understand right, to track anotherurl.com I set should set up another profile inside google such that I have:
Exsisting UAxxxxxx-1 and
Other url UAxxxxx-2
Right or wrong?
Yes, this is one way to do it (the one that I prefer). Setup a new profile (you can do this as a stand alone profile or UNDER a current profile -- if the two are associated.)
In order to track the "new" url however, you'll need to install the Google Code (different tracking id like UAxxxxx-2) on the separate url. However, if you have an automatic re-direct in place at that url and the page does not actually load upon arrival, then the tracking code for Google will not trigger (the page needs to load for that to happen) and the data for that separate url will not be tracked individually.)
angst:
One post says to add UAxxxxx-2 in admin/configuration/GoogleAnalyticsConfiguration .
There is no such configration variable or option in this module (Simple Google Analytics). Are you sure you are using this version or another?
angst:
Is this correct? There is only one field in the interface. Would I just put both with a comma in between (as in UAxxxxx-1, UAxxxxx-2)?
No, this is not correct, and no you would not want to put a comma between id's. That will render tracking useless.
angst:
Other posts mention modifying code but I am lost as to what to modify. I see tpl_main_page.php mentioned frequently but it does not look like anything in that file specifically references the particular UAxxxx number.
If you want to extend the code (but not needed as seen in the above option) you would have to look within the "google_analytics.php file found in the /google_analytics/ folder that comes with the install. This is the file that contains and writes all the tracking info to the page.