These instructions apply to these Destini Locator products:
- Legacy LITE and PRO, as well as Legacy Widgets
- Omni Channel Locators v1
Do not follow these instructions or implement the GTM import in this support doc if you are setting up event tracking for Shoppable Landing Pages, Recipes, or Omni Channel Locators WTB (v2). If you are not sure what version of our product you are using, contact us: support@destini.co
Overview
IMPORTANT: This method of enabling Destini’s event tracking requires a Google Tag Manager container to be implemented on your website.
Google's Universal Analytics is deprecated and all Analytics clients should transition to GA4. If you have not done this yet or need to learn more about GA4: https://developers.google.com/analytics/devguides/collection/ga4
Before proceeding, you should have GA4 already setup and a Measurement ID created.
The additional variable, triggers, and tags that our new GTM import script (below) installs into your GTM container allow Destini to pass-through events to your Google Analytics via their GTM.
The events we track and will be reported in your Google Analytics are:
- Locator Loaded
- Search Location
- Product Selected
- Store Results Returned
- Store Location Details Clicked
- Store Location Directions Clicked
- Stores List Pagination
- Stores Locations List Printed
- Individual Store Location Directions Printed
- Stores Locations List E-Mailed
- Individual Store Location Directions E-Mailed
- Buy Online | Retailer Selected
- Buy Online | Buy Link Clicked
Getting Started
If you are new to Google Tag Manager and/or your website does not yet use GTM, get started with Google Tag Manager Help: https://support.google.com/tagmanager?authuser=1#topic=3441530
Activating Destini’s event tracking for GTM requires these steps:
- Have a GTM container set-up for your website, and have a GTM snippet on the website.
- Request Destini to activate event tracking for GTM
- Import new tags/triggers/variable into the GTM container
1. The GTM Snippet
When GTM is properly enabled, your website (and especially the web page presenting the Destini locator) should have script snippets that look like this:
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-#######');</script>
<!-- End Google Tag Manager -->
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-#######"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
Note that your GTM container code is put in-place of GTM-####### in both places above.
2. Contact Destini to Activate Event Tracking for GTM
Once the correct snippet is on your website, contact Destini and request activation of event tracking. Please allow up to 2 business days to complete the request.
3. Import New Tags/Triggers/Variable into the GTM Container
- Download this file.
-
Edit the JSON import file in a text editor application and add your GA4 measurement ID
Replace all instances of G-0000000000 with your GA4 Measurement ID and then SAVE.
- Import this file into the GTM container for your website. You should choose to MERGE tags and triggers if you already have existing ones in the container.
Need help? https://support.google.com/tagmanager/answer/6106997?hl=en&authuser=1
-
Save, submit, and publish your changes
The Events
LOCATOR LOADED
Event Category: DESTINI_LOAD
Event Action: response
What is Tracked
When a Destini locator is loaded and presented on the user’s screen - event fires on-load and before any action taken by the user.
This event is returned every time a successful initial locator load operation concludes.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Which Panel
Example Event Label
awesomeclient_SITE_20191205172735a3520f_panel1
SEARCH LOCATION
Event Category: DESTINI_SRCHLCTN
Event Action: submit
What is Tracked
This event is returned every time a successful geolocation attempt is resolved from any panel. If a geolocated result does not contain a postal code or state, these values will be represented as NULL. Examples include:
- Search for “90210” will result in the following individually tracked data: 34.09577|-118.41512|90210|CA|USA.
- Search for “Milan, Italy” will result in the following individually tracked data: 45.46796|9.18178|NULL|Lombardie|ITA.
- Also note that state abbreviations and full state names are possible depending upon the original format of the end user query (EG: “California” and “CA”). This is a feature of the returned Esri data, and is outside Destini control.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Latitude |
Longitude |
Postal Code |
State |
Country
Example Event Label
awesomeclient__SITE_20191205172735a3520f_40.71455|-74.00714|10007|NY|USA
PRODUCT SELECTED
Event Category: DESTINI_PRDCTSEL
Event Action: submit
What is Tracked
This event is returned every time a selection of products is submitted by the end user to return brick and mortar or online retailer results. The individually tracked data will be either a pipe-delimited UPC list of the selected products, or the value ALL which indicates the end user did not select a specific product to search. Since Clients can include several thousand products within their locator, the ALL variable is implemented to avoid exceeding the capabilities of the postMessage framework. Examples include:
- Selecting 5 products will result in individually tracked data similar to: 31200028761|31200027801|3120002022|3120020007|3120020000.
- Not selecting any products will result in the following individually tracked data: ALL.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
ALL or Products Selected
Example Event Label
awesomeclient_SITE_20191205172437fcfb8f_3120000159|3120029450|3120000413
STORE RESULTS RETURNED
Event Category: DESTINI_STORELST
Event Action: response
What is Tracked
This event is returned every time a request is made for brick and mortar store results within a defined radius of a point of origin, whether or not results are found. Note that the linear distance is a computed straight line connecting the point of origin to the geolocated center of the retailer location, and does not represent driving or walking distances. If no results are returned, the number of displayed results and the distance values will return as zero. Examples include:
- Searching “90210” and returning 25 locations will result in individually tracked data similar to: 34.09577|-118.41512|25|1.7|7.6.
- Searching “90210” and returning no locations will result in the following individually tracked data: 34.09577|-118.41512|0|0|0.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Latitude |
Longitude |
Number of Results |
Closest Location |
Farthest Location
Example Event Label
awesomeclient_SITE_20191205172735a3520f_34.05266|-118.26625|25|1.9|10.1
STORE LOCATION DETAILS CLICKED
Event Category: DESTINI_STORELOC
Event Action: click
What is Tracked
This event is returned every time an end user selects an individual store to view store details, the product list, and controls to enable a directions request. Note that the linear distance is a computed straight line connecting the point of origin to the geolocated center of the retailer location, and does not represent driving or walking distances.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Retail Location Name |
Street Address |
City |
Postal Code |
Latitude |
Longitude |
Distance from User
Example Event Label
awesomeclient_SITE_20191205172735a3520f_Nature Mart|1500 Gardena Ave|Glendale|CA|91204|34.12681001|-118.259786|US|5.1
STORE LOCATION DIRECTIONS CLICKED
Event Category: DESTINI_STOREDIR
Event Action: click
What is Tracked
This event is returned every time an end user requests driving directions. Since directions can be resolved either internally or by passing the latitude/longitude pair to an external mapping service, each resolver response is coded as LOC (local) or EXT (external).
Examples include:
- Selecting driving directions from “91423” to “Pico Glatt Kosher Market” with a local resolver will result in individually tracked data similar to: LOC|Pico Glatt Kosher Market|9427 W Pico Blvd|Los Angeles|CA|90035|34.05529752|-118.3945173|US|10.62.
- Selecting driving directions from “91423” to “Pico Glatt Kosher Market” with an external resolver will result in individually tracked data similar to: EXT|Pico Glatt Kosher Market|9427 W Pico Blvd|Los Angeles|CA|90035|34.05529752|-118.3945173|US|0.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Local or External Mapping Service |
Retail Location Name |
Street Address |
City |
Postal Code |
Latitude |
Longitude |
Distance from User
Example Event Label
awesomeclient_SITE_20191205172437fcfb8f_EXT|Ralphs Fresh Fare|10309 W Olympic Blvd|Los Angeles|CA|90064|34.0523|-118.4177|US|0
STORES LIST NEXT / PREVIOUS PAGINATION
Event Category: DESTINI_STOREPAG
Event Action: click
What is Tracked
This event is returned every time an end user paginates through the list of store results, if pagination is present. The direction of pagination will be either NEXT or PREV. Examples include:
- Selecting “Next Page” when viewing a list of 1-5 stores in a paginated result list of 25 total stores showing 5 per page will result in the following individually tracked data: NEXT|6|10|25.
- Selecting “Previous Page” when viewing a list of 6-10 stores in a paginated result list of 25 total stores showing 5 per page will result in the following individually tracked data: PREV|1|5|25.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
NEXT or PREV |
start number on the page |
end number on the page |
total number of results
Example Event Label
awesomeclient_SITE_20191205224241199e24_PREV|0|5|25
STORE LOCATIONS PRINTED
Event Category: DESTINI_PRINTLST
Event Action: click
What is Tracked
This event is returned every time an end user makes a print request for returned brick and mortar store results within a defined radius of a point of origin. Note that the linear distance is a computed straight line connecting the point of origin to the geolocated center of the retailer location, and does not represent driving or walking distances. If no results are returned, the number of displayed results and the distance values will return as zero. Examples include:
- Printing a result of 25 locations returned for “90210” will result in individually tracked data similar to: 34.09577|-118.41512|25|1.7|7.6.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Latitude |
Longitude |
Number of Stores |
Closest Store |
Farthest Store
Example Event Label
awesomeclient_SITE_20191205172735a3520f_34.05266|-118.26625|25|1.9|10.1
INDIVIDUAL STORE LOCATION DIRECTIONS PRINTED
Event Category: DESTINI_PRINTSTR
Event Action: click
What is Tracked
This event is returned every time an end user makes a print request for individual store details. Note that the linear distance is a computed straight line connecting the point of origin to the geolocated center of the retailer location, and does not represent driving or walking distances. Examples include:
- Printing “Pico Glatt Kosher Market” will result in individually tracked data similar to: Pico Glatt Kosher Market|9427 W Pico Blvd|Los Angeles|CA|90035|34.05529752|-118.3945173|US|3.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Retail Location Name |
Street Address |
City |
Postal Code |
Latitude |
Longitude |
Country |
Distance from User
Example Event Label
awesomeclient_SITE_20191205172735a3520f_Nature Mart|1500 Gardena Ave|Glendale|CA|91204|34.12681001|-118.259786|US|5.1
STORE LOCATIONS E-MAILED
Event Category: DESTINI_EMAILLST
Event Action: click
What is Tracked
This event is returned every time an end user generates an email request for returned brick and mortar store results within a defined radius of a point of origin. Note that the linear distance is a computed straight line connecting the point of origin to the geolocated center of the retailer location, and does not represent driving or walking distances. If no results are returned, the number of displayed results and the distance values will return as zero. Examples include:
- Generating an email for a result of 25 locations returned for “90210” will result in individually tracked data similar to: 34.09577|-118.41512|25|1.7|7.6.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Latitude |
Longitude |
Number of Stores |
Closest Store |
Farthest Store
Example Event Label
awesomeclient_SITE_20191205172735a3520f_34.05266|-118.26625|25|1.9|10.1
INDIVIDUAL STORE LOCATION DIRECTIONS E-MAILED
Event Category: DESTINI_EMAILSTR
Event Action: click
What is Tracked
This event is returned every time an end user generates an email request for returned driving directions individual store details. Examples include:
- Generating an email for “Pico Glatt Kosher Market” will result in individually tracked data similar to: Pico Glatt Kosher Market|9427 W Pico Blvd|Los Angeles|CA|90035|34.05529752|-118.3945173|US|10.7.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Retail Location Name |
Street Address |
City |
Postal Code |
Latitude |
Longitude |
Country |
Distance from User
Example Event Label
awesomeclient_SITE_20191205172735a3520f_Nature Mart|1500 Gardena Ave|Glendale|CA|91204|34.12681001|-118.259786|US|5.1
BUY ONLINE | RETAILER SELECTED
Event Category: DESTINI_ECOMMLST
Event Action: click
What is Tracked
This event is returned every time an end user clicks on an online retailer to view the details and available products.
- Selecting “Walmart” from the EComm modal will result in individually tracked data similar to: Walmart|3120000413|3120002589.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Online Retailer Selected |
Available Product | Available Product | ...
Example Event Label
awesomeclient_SITE_20191205172735a3520f_Walmart|3120000413|3120002589
BUY ONLINE | BUY LINK CLICKED
Event Category: DESTINI_ECOMMCLK
Event Action: click
What is Tracked
This event is returned every time an end user clicks on an individual product link that takes them to the appropriate EComm store. If the price is not available, this value will be represented as NULL. In addition, client configured to send all product inquiries to a generalized product page will return NULL for the UPC value. Examples include:
- Selecting and individual product under “Walmart” from the EComm modal will result in individually tracked data similar to: 31200020222|Walmart|$12.99.
- Selecting “Walmart” for clients who have a general store but no product-level EComm data in the Locator will result in the following individually tracked data: NULL|Walmart|NULL.
Event Label Format
Client ID _
Tracking Label _
Date/Time/Session ID _
Product GTIN |
Online Retailer |
Online Price Found (or NULL)
Example Event Label
awesomeclient_SITE_20191203181948a75146_3120029450|Jet|$3.73
Comments
Article is closed for comments.