How do I setup Google Analytics?

Overview

By default, Celery is integrated with Google Analytics. As the buyer moves through the standard Celery checkout flow, Celery will trigger page view events in the following order:

  1. /:product_id
  2. /:product_id/cart
  3. /:product_id/customer
  4. /:product_id/payment
  5. /:product_id/confirmation/:order_number
When a buyer completes a checkout, Celery automatically submits e-commerce transaction data to Google Analytics. This can be viewed in Audience > Users Flow from your Google Analytics dashboard.

Disclaimer

  • To track events (pageviews, e-commerce transactions) in Google Analytics, you must be using Universal Analytics (analytics.js). If you're using the older version Classic Analytics (ga.js), you must upgrade first.
  • You must add your website domain, 'shop.trycelery.com', and 'paypal.com' to the Referral Exclusion list (see instructions below).
  • If you plan to use your own custom GA tracker, please use named trackers since we already initialize our own.
  • IMPORTANT: If a buyer has ad blocking technology enabled, the transaction may not appear in Google Analytics.

Getting Started

Step 1: To connect Celery with Google Analytics, follow these steps:

  1. Get your Google Analytics tracking ID (UA-XXXXXXXX-X).
  2. Go to your Celery Settings > Apps.
  3. Enter or paste your Google Analytics tracking ID into the section Analytics > Google Analytics.
  4. Click Save at the bottom of the page.

Step 2: Within Google Analytics, check that your Ecommerce settings are enabled:

  1. Click Admin from the menu bar at the top of any screen in Analytics.
  2. Click View Settings under the View column
  3. Click Ecommerce Settings located on the left menu.
  4. Enable Ecommerce and confirm that the status is ON.


Step 3 (IMPORTANT): To accurately tracking referrals, you must also add your website domain, 'shop.trycelery.com', and 'paypal.com' to the Referral Exclusion list:

  1. In Analytics, click Admin.
  2. Select the relevant property.
  3. Click Tracking Info.
  4. Click Referral Exclusion List.
  5. Click + ADD REFERRAL EXCLUSION.
  6. Enter your website (or the site that you'll launch Celery from), then click Create.
  7. Add the following to the referrals exclusion list: shop.trycelery.com, celeryshop.com, paypal.com.

Step 4: Finally, the events will be sent to Google Analytics Ecommerce section:


 (Optional - For multistep checkout only) Step 5: Setting up a goal to better track the sales funnel
  • From the Google analytic Goal dashboard, please setup a sales goal as per the screenshot below:

To view the goals, go to Goals > Funnel Visualization to see what the funnel looks like:


Feedback and Knowledge Base