LogoLogo
Click Here For More Support
  • 📍Get Started
    • Welcome
    • Who We Are
    • Our Product
  • 🤖AI Agent Engine
    • AI Agent Engine Basics
      • Get to Know Your AI Agent Engine
      • Glossary
      • Dashboard Overview
    • Manage Your Content
      • Response Types
        • Prewritten Plus Responses
          • Add New Prewritten Responses
          • Edit Prewritten Responses
          • Enrich Prewritten Responses
          • Response Refiner
        • Generated Responses
          • Web-Scraped Data
            • Troubleshooting
          • Documented Data
          • Enrich Generated Responses
        • Fallback Responses
      • Enrichments
        • Buttons
        • Quick Replies
        • Videos
        • Images & GIFs
          • Best Practices
      • Input Director
        • Copy & Paste Input Training
      • Best Practices
        • Locate Responses/Data
        • Revise Responses
        • Unpublish Responses
        • Content Formatting
        • Suppress Thumbs Up/Down
        • Content Groups
      • Upgrade to Context LLM
    • Install Your Chat
      • Web Installation
        • Advanced Pop-Up Options
      • InApp Webview Installation
        • App Provider Product Overview
        • iOS Advanced Install Guide
        • Android Advanced Install Guide
        • Passing Customer Identifiers
    • Enhance the Chat Experience
      • Pages
        • Add/View Chat Pages
        • Maintain State
        • Avatars
        • Chat Header Image
        • Input Container
        • Chat Background
      • Popups
        • Editor Field Definitions
        • Add/Edit Popups
        • Auto-Open
        • Prompt Bubble
        • Popup Button Image
        • Best Practices
      • Page Themes
        • Field Definitions
        • Adjust Page Themes
      • Activation & Drivers
        • Embed Webpages
        • Link Other Chats
        • Welcome Messages
      • Placement
        • Digital Placement
          • Chat Tile
          • Chat in Chat
        • In-Person Placement
      • Sponsor Inclusion
    • Features & Integrations
      • Channels
        • Facebook Messenger
          • Maintenance & Best Practices
        • Inbound SMS
      • Integrations
        • Ticket Commerce
          • Installation/Maintenance
          • Best Practices
        • Simpleview Integration
          • Listings
          • Events
          • Search Logic Summary
        • Zapier
          • Installation Guide
            • Connect to Salesforce
            • Connect to Google Sheets
        • FEVO
          • Installation Guide
          • Best Practices
        • Carbonhouse Integration
      • Features
        • Multi-Language Functionality
        • Mobile Ticketing Guide
        • Food & Beverage Finder
          • Installation/Maintenance
          • Best Practices
        • Weather Feature
        • Consent Form Feature
        • Satisfaction Score
        • 'Notify Subscription' Feature
    • User Management
      • User Types
      • Adjust User Type & Access
      • Add/Remove a User
      • Update Your Password
      • Unlock Your Account
      • Multi-Factor Authentication
    • Reporting & Analytics
      • Analytics Dashboard
        • Overview
        • AI Chat Performance Dashboard
        • Intent Explorer Dashboard
        • Intent Trends Dashboard
        • Intent Deep-Dive Dashboard
        • Bridge Agent Performance Dashboard
        • Mobile Ticketing Guide Dashboard
      • Data Reports
        • Conversation Transcripts
        • AI Resolutions Log
        • URL Link-Outs
        • Bridge Escalations
        • CSAT Entries
        • Ticket Commerce Records
        • End User Contacts
        • NLP Traffic Log
        • Input and Response Log
        • List URL Subscriptions
        • Get Response Feedback
        • Knowtifi Subscriptions
      • API Report Options
      • External IDs
      • UTM Tracking
      • Security Alerts
  • 📬Marketing Engine
    • Marketing Engine Basics
      • Get to Know Your Marketing Engine
      • Glossary
      • Login to Your Account
    • Marketing Calendar
      • How to Use the Marketing Calendar
    • Segments
      • Segments Overview
      • Uploading Contacts Manually
      • Uploading Contacts in Bulk
      • Importing a File into Unsubscribe List
      • Manage Contact Lists
      • Create Custom Object & Custom Fields for Contact Data Management
      • Contact Engagement Rules
      • Folders
      • Audience
        • Audience Dashboard
        • Audience Filters/Segments
        • Create a Meta Audience
        • Create a Audience Using Marketing Engine
      • Best Practices
        • Use Send Time Optimization
    • Templates & Landing Pages
      • Email Templates
        • Create & Preview an Email Template with Dynamic Content
      • SMS/MMS Template
      • WhatsApp Template
        • WhatsApp Carousel Template
        • WhatsApp LTO Template
        • WhatsApp Product Message Templates
      • Webpush Template
      • Mobilepush Template
      • Landing Page Template with a Form
      • Social Conversation Templates
    • Campaigns
      • Messaging Campaigns
        • Select Your SMS/MMS Sender Number
        • How to Create an SMS/MMS Campaign
        • Enable Double Opt-In
        • Messaging Campaign Report
        • Best Practices
        • SMS Regulations
          • SMS Regulations for India
          • SMS Regulations for Canada
          • SMS/MMS Regulations for USA
      • Social Campaigns
      • Email Campaigns
        • Create an Email Campaign
        • Update an Email Campaign
        • Email Campaign Report
        • Smart AI Tools
        • Best Practices
          • Reduce SPAM rate in emails
          • Craft Compelling Email Pre-Header Text
    • Journeys
      • Overview
      • Journey Blocks
      • Journey Templates
      • Create a Journey
      • Variant Testing
      • Conversion Tracking
      • Campaign or Journey Metadata
      • Advanced Filters for Sorting Campaigns/ Journeys
      • WhatsApp Journey
        • How to Use WhatsApp for Commerce
        • How to Send a WhatsApp One-Way Notification
        • Send a WhatsApp Audio Message
        • Automated WhatsApp Welcome Journey
        • WhatsApp Journey Report
      • Best Practices
        • Email Journey Strategy for Ticket Buyers
        • Journey Examples
    • Settings & Integrations
      • Integrations
        • Ticketing Integrations
          • Ticketmaster Integration
            • Best Practices
          • SeatGeek Integration
          • Glitnir Ticketing Integration
        • E-Commerce Integrations
          • Shopify
        • Website Tracking
          • Track Your Website
          • JavaScript Tracking Client
          • Track WordPress Websites
          • Track Shopify Stores
          • Enable User ID Tracking
        • Zapier Integration
      • User Management
        • Account Types
        • Add/Remove a User
        • Adjust Role & Access
        • Update Your Password
        • Two-Factor Authentication
      • Settings
        • Add Email Sender Addresses to Launch Campaigns
        • Connect Your Email Domain with the Marketing Engine
        • Connect Your Social Accounts
        • Connect your Shopify Store
        • Integrate Webpush Notifications
        • Setup Segment-based Engagement Rules
    • Factcubes
      • Fan Maturity Model
  • 💬Live Agent Engine
    • Get to Know Your Live Agent Engine
    • System Configuration
      • Installation Guide
      • Escalation Schedule
      • Multiple Team Involvement
      • Leave a Message & Contact Collection
      • Conversation Labels
      • Additional Channels & Placement
        • Bridge Placement
        • Bridge Email
          • Installation Guide
        • Facebook Messenger
    • Agent Overview
      • Logging In
      • Dashboard Overview
      • Profile Setup
      • Notification Preferences
      • Set Your Availability
      • Conversation Status
      • Assign a Conversation
      • Reply in a Conversation
      • Canned Responses
        • Add/Use a Canned Response
        • Modify/Delete a Canned Response
        • Best Practices
      • Participate in a Conversation
      • Private Notes & Mentions
      • Mute/Block a User
      • Prioritize Conversations
      • Resolve a Conversation
      • Export Transcripts
      • Macros/Automation
      • Keyboard Shortcuts
      • Ending Your Shift
      • Troubleshooting
    • Admin Overview
      • Adjust Team Assignments
      • Update Agent Status
      • Additional System Controls
    • Data & Reporting (Bridge)
    • Bridge Mobile App
  • SYSTEM UPDATES & SUPPORT
    • Help Center
    • Release Notes
      • Archived Product Updates
Powered by GitBook
On this page

Was this helpful?

  1. Marketing Engine
  2. Settings & Integrations
  3. Integrations
  4. Website Tracking

Track Shopify Stores

Last updated 2 months ago

Was this helpful?

Shopify is a popular online e-commerce store. Before Satisfi Labs can start tracking your store, you will have to manually add the tracking code. This needs to be added any time you start using a new theme.

The below steps should work for a standard Online Store setup and rely on the use of collections for category tracking and product pages for product views. It also relies on the visitor loading the cart or the cart template loading on the page when a visitor adds an item to their cart for Abandoned cart tracking. If you have a setup that skips the “Add to cart” button and goes directly to checkout, then the steps below will not work to track Cart updates.

Follow the steps below to set up standard tracking, along with e-commerce tracking of your Shopify website to Satisfi Labs:

  1. In the Marketing Engine dashboard, copy your tracking code to a text editor. You will find your tracking code in

  1. Log in to your Shopify store and navigate to Online Store, click on Themes, and then on the “Customize” button in the center of the page.

  1. Click on the liquid file in the file navigator on the left

  1. Find the end of the <head>tag in the code

  1. Paste the tracking code from your text file above the line that contains </head>

  1. Copy the following code into your tracking code block above the trackPageView line in the liquid file and click “Save”.

{% if template == 'collection' %} {% capture tag_list %} {% for tag in collection.all_tags limit:5 %} {{ tag }} {% if forloop.last == false %}::{% endif%} {% endfor %} {% endcapture %} {% assign tag_array = tag_list | split: '::'%} _paq.push(['setEcommerceView', false, // Product name is not applicable for a category view. false, // Product SKU is not applicable for a category view. {{ tag_array | json }}, // Product category, or array of up to 5 categories ]); {% endif %} {% if template == 'product' %} {% capture tag_list %} {% for tag in product.tags limit:5 %} {{ tag }} {% if forloop.last == false %}::{% endif%} {% endfor %} {% endcapture %} {% assign tag_array = tag_list | split: '::'%} _paq.push(['setEcommerceView', {{ product.id }}, // (Required) productSKU {{ product.title | json}}, // (Optional) productName {{ tag_array | json }}, // (Optional) categoryName {{ product.price | money_without_currency }} // (Optional) price ]); {% endif %}

A complete example would look like the following:

  1. Click on the sections/main-cart-items.liquid file in the left navigation menu under the “Sections” folder to open it

  2. Insert the following code block at the top of the file and click “Save”

<script> var _paq = window._paq = window._paq || []; {% for item in cart.items %} {% capture tag_list %} {% for tag in item.product.tags limit:5 %}{{ tag }} {% if forloop.last == false %}::{% endif%}{% endfor %}{% endcapture %} {% assign tag_array = tag_list | split: '::'%} _paq.push(['addEcommerceItem', {{ item.product_id }}, // (Required) productSKU {{ item.title | json }}, // (Optional) productName {{ tag_array | json }}, // (Optional) productCategory {{ item.final_price | money_without_currency }}, // (Recommended) price {{ item.quantity }} // (Optional, defaults to 1) quantity ]); {% endfor %} _paq.push(['trackEcommerceCartUpdate', {{ cart.total_price | money_without_currency }}]); </script>
  1. Click “Exit” in the top left corner to return to the Admin page and click “Settings” in the bottom left corner

  2. Click on “Checkout”

  1. Scroll all the way to the bottom of this page where it shows “Order status page” and copy your tracking code script from your text file

  1. Paste the following code:

<!-- Factoreal --> <script> var _paq = (window._paq = window._paq || []); /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(["setCookieDomain", "*.store.combifam.com"]); _paq.push(["setDoNotTrack", true]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function () { var u = "https://webanalytics.factoreal.com/"; _paq.push(["setTrackerUrl", u + "js/tracker.php"]); _paq.push(["setSiteId", "60"]); var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0]; g.async = true; g.src = u + "js/tracker.php"; s.parentNode.insertBefore(g, s); })(); {% for line_item in checkout.line_items %} {% capture tag_list %}{% for tag in line_item.product.tags limit:5 %}{{ tag }} {% if forloop.last == false %}::{% endif%}{% endfor %}{% endcapture %} {% assign tag_array = tag_list | split: '::'%} _paq.push(['addEcommerceItem', {{ line_item.product_id }}, // (Required) productSKU {{ line_item.title | json }}, // (Optional) productName {{ tag_array | json}}, // (Optional) productCategory {{ line_item.final_price | divided_by:100 }}, // (Recommended) price {{ line_item.quantity }} // (Optional, defaults to 1) quantity ]); {% endfor %} _paq.push(['trackEcommerceOrder', {{ checkout.order_id }}, // (Required) orderId {{ checkout.total_price | divided_by:100 }}, // (Required) grandTotal (revenue) {{ checkout.subtotal_price | divided_by:100 }}, // (Optional) subTotal {{ checkout.tax_price | divided_by:100 }}, // (optional) tax {{ checkout.shipping_price | divided_by:100 }}, // (optional) shipping {{ checkout.discounts_amount | divided_by:100 }} // (optional) discount ]); </script> <noscript ><p> <img src="https://webanalytics.factoreal.com/js/tracker.php?idsite=60&amp;rec=1" style="border: 0" alt="" /></p ></noscript> <!-- End Factoreal Code -->

A complete example would look like:

  1. Hover your mouse over the Pageview where you viewed the product to confirm that you’re tracking Product/Category views:

Shopify does not make the Collections or Product Categories available in the Cart or Order Status pages. For that reason, we track the product and collections Tags as the product category in the marketing engine. We support a maximum of 5 product categories per product or category view, so the code blocks above will track the first 5 tags in alphabetical order.

Integrate Marketing Engine into your Shopify Store (No e-commerce tracking)

If you don’t want to track e-commerce data in your marketing engine, you can follow the steps below to add a basic tracking code to your Shopify website.

  1. Log in to your Shopify store. Select Online Store, then choose Themes from the dropdown menu. Select Edit Code from the Actions

  1. Select liquid from the Layout.

  1. Scroll down to where you can see </head>in the code. Immediately above this, paste your Factoreal tracking code (Step 1).

  2. Click Save from the top right of the window.

  3. (optional step) If you have Shopify Plus (Shopify enterprise version), reach out to your Shopify Merchant Manager who will be able to install Satisfi Labs on your checkout pages.

  4. Open your website in the browser and perform some actions (eg: navigate to different pages)

  5. Login to the marketing engine dashboard and check if the website visit is tracked

Test that the e-commerce tracking is working as expected. – Go to your Shopify store, view some products, and add at least one product to your Cart. – Go to the marketing engine dashboard and check the “” report and check that the Cart Update is tracked to the marketing engine:

– Place an order on your website (Using for example a 100% discount coupon or while your store is placed in ““) and check that the order is tracked in the marketing engine dashboard:

In your marketing engine dashboard, copy your tracking code. You will find your tracking code in /Website Configuration.

📬
Visits Log
Test Mode
Settings
Settings
Step One