Get the most out of Blomming
Blomming.com
  • Store settings 19 décembre 2013 francesca

    Google Analytics

    This article explains what Google Analytics is and how to enable Google Analytics in your Shopify admin.
    Google Analytics allows you to track the visitors to your shop, and will generate reports that will help you with your marketing.

    This resource covers how to enable Google Analytics through the Settings > General page. We strongly recommend that you enable Google Analytics through the Settings > General page. Google Analytics can also be enabled through a tracking script in a theme template. For example, if « theme.liquid » contains either dc.js or ga.js tracking script, Google Analytics is already enabled.

    Google Analytics should only be enabled in one of the two options, otherwise tracking will be inaccurate. To inspect your site and warn you of any issues, install the Tag Assistant and then visit your site. If there is an issue, such as multiple tracking scripts, you will get a similar error message to « Error: Detected both ga.js and dc.js scripts which will make tracking ambiguous. » or « Multiple Google Analytics tags detected. » It is a good idea to check your theme first before you add another Google Analytics tracking code.

    Shopify also supports Google’s Ecommerce tracking. Learn how to set up Ecommerce tracking.

    Enable Google Analytics for your Shopify store

    To get started, you’ll need to have a Google account. If you already have a Gmail account, you’ll be able to use that. If not, head here and click the « create an account for free » link to get started.

    Begin by going to the Google Analytics homepage and click the Create an Account link in the top right corner.
    #
    On the next page, click Sign Up.
    #
    Fill everything in, and refer to the screenshot below if you’re unsure of what to write in any of the fields.
    #
    Click Get Tracking ID at the bottom of the page to complete signup.
    On the next page, you’ll be given a lot of information and options. Don’t worry about the options because Shopify automatically handles the configuration for you. You will need the default code snippet that they provide.
    Copy the code snippet to your clipboard by highlighting it and pressing Cmd-C (Ctrl-C on PC), and open your Shopify store admin in a new browser window.
    In your Shopify admin, go to the Settings > General page.
    #
    On the General page, scroll down to the section marked « Google Analytics » and in the field marked « Google Analytics code » paste the snippet by pressing Cmd-V (Ctrl-V on PC).
    #
    Two important notes on this step. Don’t put any code in the « add additional Javascript » field. This is intended for advanced users running their own tracking scripts, and putting code here can interfere with the tracking Shopify automatically sets up for you. Also, make sure that your site is not password-protected, as there won’t be any visitors to track if they can’t access your store!