Pakk Documentation
More HelpSubmit TicketPakk.io
  • Docs Home
  • Pakk Explained in 2 Minutes
  • Account Setup
    • Brands
    • Shipping Methods
      • Restricting Shipping Methods
      • Shipping Calculations
    • Payment Methods
      • Stripe
      • Paypal
      • Paytriot
      • VivaWallet
    • Admin Panel
      • Beginner Tutorial Series
        • Part 1: Overview of the Main Menu and Auxiliary Functions
        • Part 2: Overview of the Main Menu and Entities in the Admin Panel
        • Part 3: Overview of Data Management Features: Sorting, Filtering, and Bulk Actions
        • Part 4: Warnings and Detail Views
        • Part 5: Auxiliary Functionality
      • List Views
        • List View FAQs
      • Troubleshooting
  • Suppliers and Purchasing
    • Purchase Orders
      • Item Types
      • Stock Receipts
      • Invoicing and Payment
    • Demand Planning
      • Approaching the Demand Planner
      • Data Sources
      • Concepts
      • The Maths Behind the Predictions
      • Order Screen
  • Customers and Sales
    • Leads
    • Orders
      • Order Sources
        • Telephone Orders
        • In-Person Sales
      • Item Types
      • Order Status
        • Committed
        • Invoiced/Cash Saled
        • Dispatched
        • Paid
      • Order FAQs
    • Sales
      • Limitations of Sales
      • Entering and Processing Sales
      • Invoicing
      • Cancellation, Returns, Credits and Refunds
    • Credit Management
      • Payment Methods and Flows
      • Credit Terms
      • Credit Management
      • Credit Control
    • Credits, Refunds, Returns and Replacements
      • Customer Credits
        • Raising a Credit
        • The Impact of a Credit
        • Using a Credit
        • Checking Your Logic
      • Returns
      • Common Scenarios
    • Help Desk
      • Tickets
      • Configuring your Help Desk
      • Ticket Creation
      • Ticket Management
    • Loyalty Program
      • Set up Your Loyalty Program
      • Activate Your Loyalty Program on Site(s)
      • Administer your Loyalty Program
      • Accounting Considerations
  • Accounting, Bookkeeping and Finance
    • Accounting Overview
    • Accountants Guide to Pakk
    • Journal Entries
    • Rounding
    • Period Locking
    • Reconciliations
      • Create a Reconciliation
      • Build the Reconciliation
      • Completing Reconciliations
    • Cost of Goods Sold (COGS)
    • Multi-Currency
      • Exchange Rates
  • Products and Inventory
    • Pricing
      • Base Price
      • Bulk Pricing
      • Pricing Schemes
      • Per-Site Pricing
      • Web Discounts
      • Discount Adjustment Lines
      • Composite Products
    • Stock Control
      • Batches
        • Reusing Batches
    • Custom Product Attributes
      • Attribute Types
      • Attribute Setup
      • Apply to Products
    • Stock Adjustments
      • Stock Valuation
      • Assembly Builds
    • Multi-Location
      • Setting Up Locations
      • Items, Batches and Locations
      • Moving Stock between Locations
      • Incoming Stock
      • Outgoing Stock
    • Gross Margin Calculation and Control
      • Set up Default Variable Cost Parameters and Target Margin
      • Overrides
      • Margin Calculations
  • Websites
    • Visual Style Guide
      • Logo
      • Colour
      • Typography
      • Header
      • Custom CSS
      • Imagery
      • Icons
    • Configuration and Customisation
      • Website Development
      • Navigation Menus
        • Menus
        • Slots
          • Aux Bar Menu
          • Main Menu
          • Footer Menu
    • Product Categorisation
      • Related Groups
      • Product Variants
        • Variant Axes
        • Custom Attributes
        • Variant Category
        • Category List Page
        • Variant Shell Page
      • Category Warnings
    • Filtering and Sorting
      • Sorting
      • Filtering
    • Content
      • FAQs
        • Setting up FAQs
        • Using FAQs Around Your Site
      • Pages
      • Posts
      • Forms
        • How Customer Forms Work
        • Advanced Customisation
        • Confirmations, Notifications and Form Submissions
        • Use Cases and Examples
      • Feature Blocks
      • Feed Posts
      • Videos
    • SEO
      • What you need to do
      • What you don't need to worry about
    • Google Services
      • Analytics
      • Merchant Centre and Shopping Feed
      • Search Console and Sitemap
      • Adwords
    • GDPR, Privacy and Cookies
      • GDPR
      • Cookies
    • Reviews
      • Merchant Reviews
        • Shopping Experience Reviews
      • Product Reviews
    • Checkout
      • New Customers
      • Invoice Options
      • Custom Checkout Questions
      • Signup Options
    • Passwordless Login
    • Webstore Features
    • Email Sending
  • Admin and Reporting
    • Document Storage
    • Email Sending and Receiving
      • Postmark Setup
    • PDFs and Printing
  • Data and Integrations
    • Using Pakk with Other Systems
      • Pakk Integrated to Legacy Stock System
    • Data Import and Export
      • Export
        • CSV Conventions
        • List Fields
      • Import
        • Referencing Other Records
        • Test then Commit
        • Advanced
        • Importing Images & Documents
      • Tips and Tricks
    • API
      • Integrations
      • API Keys
      • Authentication
      • Integration Data (Key-Value Store)
      • Exploring API Requests and Responses
      • API Structure
        • Utility Endpoints
        • Generic Entity API
        • RPC API
        • CSV API
        • Document API
    • Webhooks
      • Setting Up a Webhook
      • Configuring the Webhook
      • Webhook Signature Verification
      • Data Transformation
      • Testing the Webhook
      • Webhook Execution Log
  • Pakk Services
    • Fulfilled by Pakk (FBP)
      • Overview of the Integration
      • Configuration
      • The FBP Tab
      • Products
      • Orders
      • Purchase Orders/ASNs
      • List Views
    • PakkPay
      • How to Setup PakkPay
Powered by GitBook
On this page
  • Technical notes on integration
  • UTM Parameters
Export as PDF
  1. Websites
  2. Google Services

Analytics

PreviousGoogle ServicesNextMerchant Centre and Shopping Feed

Last updated 6 months ago

The most basic and simplest setup. Google Analytics is the canonical site-analytics service. It gives you an overview of who’s been on your site, where they have come from and where they go afterwards. Even if you don’t spend a lot of time trawling the vast amount of data it spits out, it’s still worth setting it up just to get a picture of how much traffic your site is getting.

Over the years (like most of Google’s services), setup has become complicated. There’s a hierarchy of concepts like Account > Property > View that you need to get your head around, but once you’ve set it up and injected your tracking ID into your site, there’s nothing more you need to do.

Pakk site owners just need to copy the tracking ID from Analytics and paste it into the ‘Google Analytics ID’ field in Website > Setup. Remember to do this separately for each of your Pakk sites.

Technical notes on integration

When setting the tracking-id, as the Google Analytics Id in the admin panel, you have the option to set this to debug-mode. This allows you to monitor events in your .

We respect the user's cookie preferences using to set each of 'ad_storage', 'analytics_storage', 'ad_user_data', and 'ad_personalization' appropriately.

We set url_passthrough to true, this allows you to track client and session ids from your ads via the URL, .

We send the following events:

  • purchase

  • add_to_cart

  • remove_from_cart

  • add_to_wishlist

  • view_cart

  • begin_checkout

With all of these events we send the following parameters:

  • currency

  • value - inc. VAT

  • items - (item_id (sku), item_name (sell_name), price (exVAT for the item), quantity) - For the actions that specifically act on an item (add_to_cart, remove_from_cart, add_to_wishlist) the is just the singleton list of the item being acted upon. For the other events (purchase, view_cart, begin_checkout) this is the items in the cart at the time of the event.

In addition for the 'purchase' event we include

  • transaction_id

  • The cost of shipping (ex. VAT) associated with the purchase.

UTM Parameters

UTM parameters, including the gclid (Google Click Identifier), are read by the commerce app upon loading. These are stored in the app's memory, and maintained as the user clicks around the app. When a google analytics event is sent, together with the parameters described above, we send the UTM parameters as well.

The UTM parameters are maintained in the URL, such that if the user leaves the page and returns based on the URL when leaving, then the UTM parameters are preserved. In particular if the payment method has an "off checkout" method, where the user is directed to a separate website to complete payment and then returned, the purchase event will be registered with the UTM parameters.

When the customer completes a payment and is sent to the order confirmation page, at that point, the UTM parameters are dropped from the URL (though still stored in the app's memory).

google analytics account in debug view
google consent mode
see here