Support » Plugin: WP Shopify » Check Shopify sales through WordPress

  • Resolved JCLondon

    (@jclondon)


    Hi there,

    Is it possible to monitor the sales directed from the WordPress site within the WordPress admin panel? Or is there any way to track the sales coming from the WordPress site?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @jclondon

    The plugin doesn’t provide this formally, but you can enable cross-domain tracking in Google Analytics to set this up.

    The Pro version of the plugin has this feature. All you need to do is then add the tracking snippet to both sites.

    Let me know if you’d like to try this and I can send you the snippet instructions.

    Thread Starter JCLondon

    (@jclondon)

    Hi Andrew,

    Thanks a lot for your quick reply.

    Yes I would like to try that and I would definitely appreciate some in-details instructions please.

    I just give you a bit more informations on what we are trying to achieve, in case that makes a difference with the tracking.

    We would like to use this feature with one of our vendors on our marketplace. We are selling the vendor’s products on our website but we have agreed with the vendor that the checkout is done on their Shopify. Therefore we would like to track the sales on their website that come from our marketplace. Is that possible?

    Also, would the Shopify admin panel know if the sold product came from the WordPress site?

    Thank you!
    Jeff

    • This reply was modified 5 months, 3 weeks ago by JCLondon.
    • This reply was modified 5 months, 3 weeks ago by JCLondon.
    Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @jclondon

    Hey Jeff,

    The process has a few components to it.

    First, you’ll need to add the GTM tracking code to both your WordPress and Shopify sites. To add it within Shopify, you’ll need to place the embed code within the “Additional scripts” section of the Shopify checkout settings.

    Second, you’ll need to edit the GTM embed code on both sites to include the “GA Linker plugin”. This is responsible for passing the tracking cookie from WordPress to Shopify. You can do this by setting the “domains” key inside your GA embed code.

    Here’s an example of how it should roughly look on your WP site:

    
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="<https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX-X"/script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'XXXXXXXXX-X', {
    'linker': {
    'domains': ['yoursite.com', 'checkout.yoursite.com']
    }
    });
    </script>
    

    Notice this part specifically:

    
    gtag('config', 'XXXXXXXXX-X', {
       'linker': {
          'domains': ['yoursite.com', 'checkout.yoursite.com']
       }
    });
    

    You’ll want to change [‘yoursite.com’, ‘checkout.yoursite.com’] to match the possible domains you’ll be using on your Shopify checkout page.

    Here, I’m using checkout.yoursite.com, but you may be using the standard myshopify.com domain.

    Third, you’ll need to ensure all domains are included in the Referral Exclusion list as described here: https://developers.google.com/analytics/devguides/collection/analyticsjs/linker

    @jclondon Did you figure out this or some other easy as I have been requested something similar by the client.

    animesaulo

    (@animesaulo)

    Just so you guys know, Shopify does let you know the sales channel that the sale came from.

    In your Shopify Control Panel you can see this my going to:

    1. Go to “Orders”
    2. Click the filter icon near the top-right
    3. Select the “Sales Channel” filter
    4. Select the name of your custom app used for the WP Shopify plugin
    5. Click on “Done” in the top-right

    That will show you, in Shopify, all the orders that came from your WordPress site using WP Shopify.

    Plugin Author Andrew @ wpshop.io

    (@andrewmrobbins)

    @animesaulo

    Thanks for letting people know about this. Very useful!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.