Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8765593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:19:20+00:00 2026-06-13T16:19:20+00:00

I’m having a problem with Google Analytics Traditional tracking between my site and my

  • 0

I’m having a problem with Google Analytics Traditional tracking between my site and my Shopify.com storefront. Ultimatelly, my Analytics account is NOT showing any eCommerce, page-views etc from Shopify.com.

I’ve conducted a variety of tests between my website and Shopify.com’s:

  • SetDomainName on both sites:”.mysite.com”, “mysite.com”, “none”
  • SetDomainName on MYSITE:”.mysite.com”, “mysite.com”, “none”, VS SetDomainName on SHOPIFY:”.mysite.com”, “mysite.com”, “none”
  • And every variation in between.

I did have a successful transaction that recorded in my GA account a few weeks ago but I haven’t been able to replicate it again (using the same methods you see below, with the same product, using Chrome).

Shopify.com still uses the old traditional Google Anlaytics tracking script so I changed my GA script on mysite back to the following trad script:

<script type="text/javascript">
    var pageTracker = _gat._getTracker('UA-XXXXXX-X');
    pageTracker._setDomainName('.mysite.com');
    pageTracker._setAllowLinker(true);
    pageTracker._trackPageview();
</script>

And the inline code from mysite.comis, linking to the Shopify.com store page (bypassing the shopping cart):

<a href="http://mysite.myshopify.com/cart/XXXXXXXXX:X" onclick="pageTracker._link('http://mysite.myshopify.com/cart/XXXXXXXXX:X'); return false;" alt="Buy Product">BUY NOW </a>

Shopify’s GA Code renders as the following and I only have the ability to update the UA ID# and ADD custom variables (as you can see I did with pageTracker and setDomainName below). I CAN’T DELETE or modify the script other than that though.

<script type="text/javascript">
    var pageTracker = _gat._getTracker('UA-XXXXXX-X');
    pageTracker._addDevId('XXXXX');
    pageTracker._setAllowLinker(true);
    pageTracker._setDomainName('none');
    try{pageTracker._setDomainName('.mysite.com');}
    catch(e){};pageTracker._trackPageview();
</script>

As you can see from the Shopify.com receipt page code below, the data I is getting passed and it’s registering $, setDomainName twice: once with .mydomain.com and a second with “none”. BUT–Unfortunately it’s not registering in my GA account.

<script type="text/javascript">
var pageTracker = _gat._getTracker('UA-XXXXXX-X');
pageTracker._addDevId('XXXXX');
pageTracker._setAllowLinker(true);
pageTracker._setDomainName('none');
try{pageTracker._setDomainName('.mysite.com');
}catch(e){};
pageTracker._trackPageview('/checkout/orders/show');

<script type="text/javascript">
pageTracker._addTrans("#1270", "MySiteName", "5.00", "0.00", "0.00", "City", "State", "United States");
pageTracker._addItem("#XXXX", "SYMXXX", "Product Name", "ProjectCategory", "5.00", "1");
pageTracker._trackTrans();

Any thoughts?

I’m wondering if the first setDomainName on Shopify.com (that I don’t have control of) is negating the second that I’ve added. I’m going to test what’s above without adding the additional “pageTracker._setDomainName(‘.mysite.com’);” on Shopify, but I thought I’d reach out also since my last dozen or so tests have not generated the results I want.

Thanks in advance for the help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:19:21+00:00Added an answer on June 13, 2026 at 4:19 pm

    _setDomainName just tells the Google Analytics cookie where to store itself. It sounds like you’re trying to set the domain as .mysite.com from a shopify domain like mystore.shopify.com. Cookies can’t be set across domains like this for security reasons. Try leaving gat._setDomainName('.mysite.com') on you main site and gat._setDomainName('none') on your shopify store.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I've tracked down a weird MySQL problem to the two different ways I was
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I need a function that will clean a strings' special characters. I do NOT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.