InMotion Hosting Support Center

My open cart site has multiple domains. How do I enter multiple tracking codes?

2013-07-13 8:39 pm EST

Hits: 2,318
I was able to add one code...but not sure if I need more than one for different domains even though they all go to the same site.

Thanks so much!

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,399 Points
2013-07-15 9:39 am EST
Hi danitaw,

I'm not very familiar with adding multiple Google Analtyics tracking codes to OpenCart, and I'm not seeing much documentation online about the topic.

In this tutorial, Adding the Google Analytics code to OpenCart, it shows how to add one tracking code. Have you tried pasting multiple tracking codes into the Google Analtics Code field? This, however may give you unexpected results, as multiple codes on the same page may cause problems.

What you're trying to do doesn't seem to be possible with the default OpenCart setup (as far as I can tell). I found a few extensions that may help. I'm assuming the extensions were created as this task isn't possible without them:

Multistore Google Analytics

Multistore google analytics

I can't vouch if this will work or not, but I did find this tutorial in which someone apparently modified several OpenCart files to get the task done (please note, it's never a good idea to modify core files as if you upgrade your store you could lose the changes)

Opencart: Add store based google analytics code

I hope this helps point you in the right direction!

- Brad

You must login before you can post a comment about this answer.

Thanks so much! Would you be able to tell me how I know if it worked when I added the code?
I am new at this......I added it as instructed but now have no idea if it worked or how to access it,,,,ty
8 Points
2013-07-15 9:55 am EST
Hello danitaw,

After you have added the Google tracking code, you then go to Google and Verify the setup with them.

Google advises "It can take up to 24 hours for all data to appear in your Google Analytics account after you've installed the tracking code. "

To check the statistics go to the same place you got the code from, which is: Google Analytics

If you have any further questions, feel free to post them below.
Thank you,

17,726 Points
2013-07-15 10:31 am EST
Like this Question?

Support Center Login

Social Media Login

Social Login Joomla

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!