Google Tag Manager
If your site uses Google Tag Manager (GTM) to implement third-party tags such as Bloomreach's Pixel, follow the steps given in this section.
Below are GTM templates that you can download and import in your GTM (how-to described in sections below) to get you started. You can consult with your Bloomreach representative as to which you should download/use.
The Tags and Variables will be delivered in a single JSON file that you can import into your GTM console. You can start from the template files below:
Replace accountId value in the JSON file
Find 5014 and replace it with your corresponding account ID. You can find your account ID from the account package received, or you can consult with your Bloomreach representative.
{
"exportFormatVersion": 2,
"exportTime": "2024-03-07 05:31:06",
"containerVersion": {
"path": "accounts/1321514653/containers/90401392/versions/0",
"accountId": "1321514653",
"containerId": "90401392",
"containerVersionId": "0",
"container": {
"path": "accounts/1321514653/containers/90401392",
"accountId": "1321514653",
"containerId": "90401392",
"name": "Default-Template-V2",
"publicId": "GTM-M3KL34W",
"usageContext": [
"WEB"
],
"fingerprint": "1658940081708",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/1321514653/containers/90401392/workspaces?apiLink=container",
"features": {
"supportUserPermissions": true,
"supportEnvironments": true,
"supportWorkspaces": true,
"supportGtagConfigs": false,
"supportBuiltInVariables": true,
"supportClients": false,
"supportFolders": true,
"supportTags": true,
"supportTemplates": true,
"supportTriggers": true,
"supportVariables": true,
"supportVersions": true,
"supportZones": true,
"supportTransformations": false
},
"tagIds": [
"GTM-M3KL34W"
]
},
"tag": [
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "20",
"name": "BloomReach PageView",
"type": "html",
"notes": "Base configuration for BloomReach tracking pixel that needs to fire on all page views. When fired, requests BloomReach's tracker javascript and configures it according to your site-wide settings.\n\nAt time of evaluation, if the BloomReach Page Type variable is one of (\"product\", \"category\", \"search\", \"content\"), will set additional required parameters for those page types. If BloomReach Is Conversion variable is 1, the conversion page view additional required parameters will also be set.\n\nFor facet filters on Category and Search Pages:\nIf a user applies a facet filter and refreshes results, the Category and Search pixels respectively should fire again each time filters are applied. BloomReach uses this information to understand which filters are commonly used.\n\nRelevance by segment (optional)\nAdd pixel parameters containing segment name and values to capture analytics for those segments.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n var br_data = br_data || {};\n br_data.acct_id = {{BloomReach Account ID}};\n br_data.user_id = {{BloomReach User ID}};\n br_data.tms= {{BloomReach Tag Manager ID}};\n br_data.ptype = {{BloomReach Page Type}};\n br_data.customer_tier = {{BloomReach Customer Tier Segment}};\n br_data.customer_country = {{BloomReach Customer Country Segment}};\n br_data.customer_geo = {{BloomReach Customer Geo Segment}};\n br_data.customer_profile = {{BloomReach Customer Profile Segment}};\n \n switch (br_data.ptype) {\n case 'product':\n br_data.prod_id = {{BloomReach Product ID}};\n br_data.prod_name = {{BloomReach Product Name}};\n br_data.sku = {{BloomReach Product SKU}};\n break;\n case 'category':\n br_data.cat_id = {{BloomReach Category ID}};\n br_data.cat = {{BloomReach Category}};\n break;\n case 'search':\n br_data.search_term = {{BloomReach Search Term}};\n break;\n case 'content':\n br_data.catalogs = {{BloomReach Catalog Array}};\n br_data.item_id = {{BloomReach Content Item ID}};\n br_data.item_name = {{BloomReach Content Item Name}};\n break;\n }\n \n if ({{BloomReach Is Conversion}}) {\n br_data.is_conversion = {{BloomReach Is Conversion}};\n br_data.basket_value = {{BloomReach Basket Value}};\n br_data.order_id = {{BloomReach Order ID}};\n br_data.basket = {{BloomReach Basket}};\n }\n \n (function() {\n var brtrk = document.createElement('script');\n brtrk.type = 'text/javascript';\n brtrk.async = true;\n brtrk.src = 'https:' == document.location.protocol ? \"https://cdns.brsrvr.com/v1/br-trk-{{BloomReach Account ID}}.js\" : \"http://cdn.brcdn.com/v1/br-trk-{{BloomReach Account ID}}.js\";\n var s = document.getElementsByTagName('script')[0];\n s.parentNode.insertBefore(brtrk, s);\n })();\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659547527654",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_LOAD",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "24",
"name": "BloomReach Suggest Event",
"type": "html",
"notes": "If you have an auto-suggest feature in your search form, when a user clicks on a search suggestion, BloomReach expects a Search Suggest Event to fire.\n\nNote: the next pixel that is fired (typically the search page view pixel) will automatically contain the parameters fired in Search Suggest event pixel prefixed with \"df_\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('suggest', 'click', {{BloomReach Suggest Data}}, {}, true);\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1658861726317",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "26",
"name": "BloomReach Add To Cart Event",
"type": "html",
"notes": "When a user adds an item to their cart, BloomReach's Add To Cart Event should fire. Typically this includes the product display page and product listing pages such as category or search pages.\n\nIf an Add To Cart button is located anywhere else on your site (e.g. Product Collection or Sku Set pages) , please also fire this tag there as well.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent(\"cart\", \"click-add\", {{BloomReach Cart Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1658861726318",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "27",
"name": "BloomReach Quick View Event",
"type": "html",
"notes": "Anytime a user opens a Quick View to display more details about a product on your site, BloomReach expects a Quick View Event to fire.\n\nQuick Views are commonly found on Product Listing pages, but if there are alternate locations to trigger a Quick View, please also fire on those locations as well.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('product', 'quickview', {{BloomReach Quick View Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1658861726318",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "28",
"name": "BloomReach Search Event",
"type": "html",
"notes": "When a user clicks on the submit button or hits the enter key on a search form, BloomReach expects a Search Submit Event to fire.\n\nNote: the next pixel that is fired (typically the search page view pixel) will automatically contain the parameters fired in Search Submit event pixel prefixed with \"df_\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('suggest', 'submit', {{BloomReach Search Data}}, {}, true);\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1658861726318",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "33",
"name": "BloomReach Widget Add To Cart Event",
"type": "html",
"notes": "This tracks the customer’s activity when the ATC button within a widget is clicked. This pixel is optional and should be installed only if you have placed an Add-to-Cart button within a widget.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent(\"cart\", \"widget-add\", {{BloomReach Widget Cart Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1658955242127",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "34",
"name": "BloomReach Widget Click Event",
"type": "html",
"notes": "When a customer clicks on a Recommendation widget, a click event occurs and is tracked by a Javascript tracking pixel.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('widget', 'widget-click', {{BloomReach Widget Data}}, true)\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659108798569",
"parentFolderId": "22",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"tagId": "36",
"name": "BloomReach Widget View",
"type": "html",
"notes": "This pixel tracks the impressions of the customer whenever a recommendation widget is viewed by the customer. For every widget that is added to the page, a corresponding widget view pixel has to be fired.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('widget', 'widget-view', {{BloomReach Widget View Data}}, true)\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659034326400",
"parentFolderId": "11",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
}
],
"variable": [
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "4",
"name": "BloomReach Page Type",
"type": "jsm",
"notes": "Maps your site's page type classifications to the values BloomReach expects for our page type classifications.\n\nRequired on *all* page views, including desktop, mobile, and tablet versions.\n\nBloomReach's Page Type classifications:\n\n* homepage - homepage or landing pages\n* category - category listing pages and category product listing pages\n* search - search listing pages\n* product - product, product bundle, product collection or sku set pages\n* thematic - BloomReach thematic pages\n* content - content pages\n* other - any pagetype that is not one of the above types. If not one of above, required to return other.\n\nVariable Type: String of enumerated type of (\"homepage\", \"product', \"category\", \"search\", \"content\", \"thematic\", \"jfy\", \"mlt\", \"trend\")\n\nVariable Example: \"homepage\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"other\"; \n}"
}
],
"fingerprint": "1658861726311",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "5",
"name": "BloomReach Category ID",
"type": "jsm",
"notes": "A Unique category ID as referred to in the database/catalog. This refers to the ID of the leaf node. \nIf your category page does not have a unique ID, but it has a unique breadcrumb path, then enter the name of the last crumb (leaf node).\nIf your category page does not have a unique bread crumb path, please consult with your BloomReach Technical Project Manager for options.\n\nDependencies: This should match the \"crumbs_id\" field in the product feed that you send to BloomReach. \nThis ID typically refers to the \"leaf\" of the crumb.\n\nVariable Type: String. This field value is case-sensitive.\n\nExample (1) with unique Category ID: \"cat749\"\n\nExample (2) with unique Bread Crumb path:\nIf you crumb path is Home/Women/Outerwear, enter \"Outerwear\" as Category ID. \nPlease ensure that this leaf node is sent in the \"crumbs_id\" field in the Product feed that you send to BloomReach.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726312",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "6",
"name": "BloomReach Product Name",
"type": "jsm",
"notes": "The name of the product being viewed.\n\nFor Product PageViews (single product, product collection, product bundle, or sku set pages) only.\n\nVariable Type: String\nVariable Example: \"Blue Lace Dress\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726312",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "7",
"name": "BloomReach Search Data",
"type": "jsm",
"notes": "The BloomReach Search Submit Object contains information about the search query being submitted. For example, if a user types `blue dress` and then clicks the search button or hits enter to submit the search, this variable should return:\n\n{\"q\": \"blue dress\"}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: q\ntype: String\nexample: \"blue lace dress\"\ndescription: User's typed search query submitted to search box.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n var searchData = {};\n searchData[\"q\"] = \"EXAMPLEVALUE\";\n searchData[\"catalogs\"] = [{ \"name\" : \"example_en\" }];\n searchData[\"customer_tier\"] = \"\";\n searchData[\"customer_geo\"] = \"\";\n searchData[\"customer_country\"] = \"\";\n searchData[\"customer_profile\"] = \"\";\n return searchData;\n}"
}
],
"fingerprint": "1659548746753",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "8",
"name": "BloomReach Order ID",
"type": "jsm",
"notes": "The order id associated with the order placed. This id should match the orderID used in your analytics systems. This is used to reconcile BloomReach's analytics data with your analytics systems.\n\nVariable Type: String\n\nExample: \"12123455\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726313",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "9",
"name": "BloomReach User ID",
"type": "jsm",
"notes": "Universal customer ID, if you use one, to pass to BloomReach to recognize users in a way that is aligned with our system for various personalization features. Should be an anonymized string and should not contain the user's email or other personally identifiable information.\n\nVariable Type: String\nExample Value: \"947345478564\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726313",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "10",
"name": "BloomReach Tag Manager ID",
"type": "c",
"notes": "When more than one tag management solutions are firing BloomReach pixels simultaneously, this value is used as an identifier to filter out duplicate pixels. This value can be any string identifier as long as it is constant per tag manager solution.\n\nVariable Type: String\nExample Values: \"gtm\", \"googletagmanager\", \"dtm\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "gtm"
}
],
"fingerprint": "1658861726309",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "12",
"name": "BloomReach Product ID",
"type": "jsm",
"notes": "This is the unique ID, which describes a product, product bundle, product collection or sku set. If a product is available in multiple SKUs (e.g. color/size combinations), this field refers to the id shared by all the SKUs for a product.\n\nData Type: String, This field value is case-sensitive.\n\nDependencies: This field needs to match the unique product id sent in the feed.\n\nExamples:\n(1) Product Page: If your product ID is prod1234, return \"prod1234\"\n\n(2) Product Collection Page: \n (a) If your Product Collection page has their own unique ID and is sold exactly like a standalone product, enter the collection ID. Make sure that this collection ID is sent in the feed as a product ID.\n\n (b) If your Product Collection has their own unique ID, but cannot be purchased as a whole; only the collections' individual parts can be purchased and each of these individual parts have their own ID, enter the collection ID. Make sure that this collection ID is sent in the feed as a product ID.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726314",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "13",
"name": "BloomReach Is Conversion",
"type": "jsm",
"notes": "Set to 1 on the Conversion or Thank you page (page after the customer completes the purchase).\n\nVariable Type: Integer\n\nExample: 1",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726314",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "14",
"name": "BloomReach Product SKU",
"type": "jsm",
"notes": "For Product PageViews only.\n\nUnique SKU ID representing the selected variant of this product (e.g. size M, color blue of a t-shirt). If SKU is not applicable to the product, leave this blank.\n\nVariable Type: String\nVariable Examples:\n\n\"789\"\n\"SM123\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726315",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "15",
"name": "BloomReach Basket",
"type": "jsm",
"notes": "The BloomReach Basket Object contains detailed conversion parameters for each product that was purchased. An example basket object that this variable might return:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",.\n \"name\": \"Cashmere Sweater\",\n \"quantity\": \"1\",\n \"price\": \"65.95\"\n }\n }\n\n## Detailed Basket Spec\n\nType: Object\n\nThis object contains a property called `items` which is an array of the product objects purchased. For each product in the `items` array, the following properties should be included as specified:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.\n\nname: name\ntype: String\nexample: \"Cashmere Sweater\"\ndescription: Product Name.\n\nname: quantity\ntype: Integer\nexample: 2\ndescription: Quantity of this product in the basket\n\nname: price\ntype: String\nexample: \"pid123456\"\ndescription: Unit price *per* product, not the total price. If item is on sale, this is the unit sale price.\n\n## Additional Examples\n\n2 products, first product has a sku, second product does not have a sku:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",.\n \"name\": \"Cashmere Sweater\",\n \"quantity\": \"1\",\n \"price\": \"65.95\"\n },\n {\n \"prod_id\" : \"pid56789\",\n \"sku\": \"\",\n \"name\": \"Blue Skinny Jeans\",\n \"quantity\": \"2\",\n \"price\": \"79.99\"\n }\n ]\n };\n\n2 products, first product is a Product Bundle, second product is an individual product:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"bundle223344\",\n \"sku\": \"\",.\n \"name\": \"Linen Bed Sheet Set\",\n \"quantity\": \"1\",\n \"price\": \"265.95\"\n },\n {\n \"prod_id\" : \"pid56789\",\n \"sku\": \"\",\n \"name\": \"Blue Skinny Jeans\",\n \"quantity\": \"2\",\n \"price\": \"79.99\"\n }\n ]\n};\n\n## Additional Details \n\nIf the item in the basket is a Product Collection, Product Bundle or Sku Set:\n (a) Your Collection Pages have their own unique ID and are sold exactly like standalone products, then enter the collection ID in the prod_id \n field. Make sure that this collection ID is sent in the feed in the product ID field.\n\n (b) Your Product Collections have their own unique ID, but cannot be purchased as a whole; only the collections' individual parts/products \n can be purchased and each of these individual parts have their own ID. In this case, list all individual products in the basket and the \n prod_id is the the ID of each product. Make sure that each product ID is sent in the feed in the product ID field.\n\n (c) Products that are a part of a Collection but can only be purchased from their own individual product page. In this case follow the same \n guideline as described in (b)\n\n## Custom Javascript Variable Example\n\nThis variable will normally be setup as the Custom JavaScript type. Here is an example of the function you might write. The example assumes you've implemented Google Enhanced Ecommerce and the purchase object is available on the data layer.\n\nfunction () {\n var products = google_tag_manager[{{Container ID}}].dataLayer.get(\"ecommerce.purchase.products\");\n var item;\n var items = [];\n\n if (products && products.length > 0) {\n for (var i = 0; i < products.length; i++) {\n console.log(products[i]);\n item = {};\n item.prod_id = products[i].id;\n item.name = products[i].name;\n item.quantity = products[i].quantity;\n item.price = products[i].price;\n items.push(item);\n }\n }\n\n return {\"items\": items};\n}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"items\": [{\n \"prod_id\": \"EXAMPLEVALUE\", \n \"sku\": \"EXAMPLEVALUE\", \n \"name\": \"EXAMPLEVALUE\", \n \"quantity\": \"EXAMPLEVALUE\", \n \"price\": \"EXAMPLEVALUE\" }]\n }; \n}"
}
],
"fingerprint": "1658861726315",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "16",
"name": "BloomReach Search Term",
"type": "jsm",
"notes": "For search page views only, this it the value of the search query describing the page.\n\nVariable Type: String\nExample Values: \"blue dress\", \"red dress\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726315",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "17",
"name": "BloomReach Basket Value",
"type": "jsm",
"notes": "The total price of the checkout basket including tax, shipping and/or discounts in the account currency.\n\nVariable Type: String\n\nFormat: The total price of the checkout basket, in the account currency, without any symbols. \n\nExample: If the checkout basket was $100 with $5 tax and $10 shipping, the value for this parameter should be \"115.00\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726316",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "18",
"name": "BloomReach Category",
"type": "jsm",
"notes": "The breadcrumb of the page.\n\nDependencies: Needs to match the \"crumbs\" field in the product feed that you send to BloomReach.\n\nVariable Type: String\n\nFormat: <top level crumb>|<first level crumb>|<second level crumb>\nCrumbs need to be delimited by |\n\nExample:\nIf your category crumb is \"Home/Clothing/Outerwear\", then return \"Home|Clothing|Outerwear\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658861726316",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "19",
"name": "BloomReach Account ID",
"type": "c",
"notes": "The BloomReach-provided Account identifier. This ID is a constant and is pre-populated. If your account ID is not pre-populated, please reach out to your Technical Project Manager.\n\nVariable Type: String\nExample: \"1235\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "5014"
}
],
"fingerprint": "1658861726310",
"parentFolderId": "3"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "21",
"name": "BloomReach Cart Data",
"type": "jsm",
"notes": "The BloomReach Cart Object contains detailed product information when a product is added to a cart. An example Cart object that this variable might return:\n\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\"\n}\n\n## Detailed Cart Spec\n\nType: Object\n\nProperties:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"prod_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548372465",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "23",
"name": "BloomReach Suggest Data",
"type": "jsm",
"notes": "The BloomReach Search Suggest Object contains information about the search suggestion that was clicked as well as the typed value that lead to the suggestion from your auto suggest interface.\n\nFor example, when a user types `blu` and the auto-suggest window shows up and a user clicks the suggested search `blue summer dress`, this variable should return:\n\n{\n \"aq\": \"blu\",\n \"q\": \"blue summer dress\"\n}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: q\ntype: String\nexample: \"blue summer dress\"\ndescription: Value of suggested search, ie, search that is submitted to the search service.\n\nname: aq\ntype: String\nexample: \"blu\"\ndescription: User's typed search query submitted to search box.\n\n## Additional Examples:\n\n{\"aq\": \"re\", \"q\": \"red shoes\"}\n\n{\"aq\": \"blue su\", \"q\": \"blue summer dress\"}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"aq\": \"EXAMPLEVALUE\",\n \"q\": \"EXAMPLEVALUE\"\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548803857",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "25",
"name": "BloomReach Quick View Data",
"type": "jsm",
"notes": "The BloomReach Quick View Object contains detailed product information about a product being viewed in a Quick View. An example Quick View object that this variable might return:\n\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",\n \"prod_name\": \"cashmere sweater\"\n}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.\n\nname: prod_name\ntype: String\nexample: \"Cashmere Sweater\"\ndescription: Product Name.\n\n## Additional Details\n\nIf the Product Quick View is a Product Collection, Product Bundle or Sku Set:\n (a) Your Collection Pages have their own unique ID and are sold exactly like standalone products, then enter the collection ID in the prod_id \n field. Make sure that this collection ID is sent in the feed in the product ID field.\n\n (b) Your Product Collections have their own unique ID, but cannot be purchased as a whole; only the collections' individual parts/products \n can be purchased and each of these individual parts have their own ID. In this case, enter the collection ID in the prod_id field. Make sure \n that this collection ID is sent in the feed in the product ID field.\n\n (c) Your Products are a part of a Collection but can only be purchased from their own individual product page. In this case enter the product \n ID of the first product in the prod_id field.\n\n## Additional Examples\n\nQuick view for product with a Sku:\n\n{\"prod_id\": \"34561234\", \"prod_name\": \"Blue Lace Dress\", \"sku\": \"987\"}\n\nQuick view for product without a sku:\n\n{\"prod_id\": \"12349028\", \"prod_name\": \"Beach Ball\"}\n\nQuick view for a Product Bundle: \n\n{\"prod_id\": \"set223344\", \"prod_name\": \"Linen Bed Set\"}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"prod_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548690281",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "29",
"name": "BloomReach Content Item ID",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658862060744",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "30",
"name": "BloomReach Content Item Name",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1658862060745",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "31",
"name": "BloomReach Catalog Array",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return [ { name : \"<example_en_prd>\" } ]; \n}"
}
],
"fingerprint": "1658862060743",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "32",
"name": "BloomReach Widget Cart Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548819608",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "35",
"name": "BloomReach Widget Data",
"type": "jsm",
"notes": "widget_view_data.wrid - The unique ID of the response.\nwidget_view_data.wq - The query string used by the customer which returns a widget suggestion. This is optional for non-query widgets.\nwidget_view_data.wid - The widget ID. This is a unique, 6 character alphanumeric value.\tabc123\nwidget_view_data.wty - The type of recommendation widget. The value returned in the API response shall be passed as a widget type.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548827210",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "37",
"name": "BloomReach Widget View Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659548833866",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "38",
"name": "BloomReach Customer Tier Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659547542206",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "39",
"name": "BloomReach Customer Geo Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659547907177",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "40",
"name": "BloomReach Customer Profile Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659547933185",
"parentFolderId": "3",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90401392",
"variableId": "41",
"name": "BloomReach Customer Country Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659547952224",
"parentFolderId": "3",
"formatValue": {}
}
],
"folder": [
{
"accountId": "1321514653",
"containerId": "90401392",
"folderId": "3",
"name": "BloomReach Variables",
"fingerprint": "1658861726308"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"folderId": "11",
"name": "BloomReach PageViews",
"fingerprint": "1658861726310"
},
{
"accountId": "1321514653",
"containerId": "90401392",
"folderId": "22",
"name": "BloomReach Events",
"fingerprint": "1658861726311"
}
],
"fingerprint": "1709789466082",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/1321514653/containers/90401392/versions/0?apiLink=version"
}
{
"exportFormatVersion": 2,
"exportTime": "2024-07-12 15:38:17",
"containerVersion": {
"path": "accounts/1321514653/containers/90821863/versions/0",
"accountId": "1321514653",
"containerId": "90821863",
"containerVersionId": "0",
"container": {
"path": "accounts/1321514653/containers/90821863",
"accountId": "1321514653",
"containerId": "90821863",
"name": "Multisite-Template-V2",
"publicId": "GTM-W9ST7RW",
"usageContext": [
"WEB"
],
"fingerprint": "1659549932017",
"tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/1321514653/containers/90821863/workspaces?apiLink=container",
"features": {
"supportUserPermissions": true,
"supportEnvironments": true,
"supportWorkspaces": true,
"supportGtagConfigs": false,
"supportBuiltInVariables": true,
"supportClients": false,
"supportFolders": true,
"supportTags": true,
"supportTemplates": true,
"supportTriggers": true,
"supportVariables": true,
"supportVersions": true,
"supportZones": true,
"supportTransformations": false
},
"tagIds": [
"GTM-W9ST7RW"
]
},
"tag": [
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "6",
"name": "BloomReach Quick View Event",
"type": "html",
"notes": "Anytime a user opens a Quick View to display more details about a product on your site, BloomReach expects a Quick View Event to fire.\n\nQuick Views are commonly found on Product Listing pages, but if there are alternate locations to trigger a Quick View, please also fire on those locations as well.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('product', 'quickview', {{BloomReach Quick View Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659550099391",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "25",
"name": "BloomReach PageView",
"type": "html",
"notes": "Base configuration for BloomReach tracking pixel that needs to fire on all page views. When fired, requests BloomReach's tracker javascript and configures it according to your site-wide settings.\n\nAt time of evaluation, if the BloomReach Page Type variable is one of (\"product\", \"category\", \"search\"), will set additional required parameters for those page types. If BloomReach Is Conversion variable is 1, the conversion page view additional required parameters will also be set.\n\nFor facet filters on Category and Search Pages:\nIf a user applies a facet filter and refreshes results, the Category and Search pixels respectively should fire again each time filters are applied. BloomReach uses this information to understand which filters are commonly used.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n var br_data = br_data || {};\n\n br_data.acct_id = {{BloomReach Account ID}};\n br_data.user_id = {{BloomReach User ID}};\n br_data.domain_key = {{BloomReach Domain Key}};\n br_data.view_id = {{BloomReach View ID}};\n br_data.tms= {{BloomReach Tag Manager ID}};\n \n br_data.ptype = {{BloomReach Page Type}};\n \n switch (br_data.ptype) {\n case 'product':\n br_data.prod_id = {{BloomReach Product ID}};\n br_data.prod_name = {{BloomReach Product Name}};\n br_data.sku = {{BloomReach Product SKU}};\n break;\n case 'category':\n br_data.cat_id = {{BloomReach Category ID}};\n br_data.cat = {{BloomReach Category}};\n break;\n case 'search':\n br_data.search_term = {{BloomReach Search Term}};\n break;\n }\n \n if ({{BloomReach Is Conversion}}) {\n br_data.is_conversion = {{BloomReach Is Conversion}};\n br_data.basket_value = {{BloomReach Basket Value}};\n br_data.order_id = {{BloomReach Order ID}};\n br_data.basket = {{BloomReach Basket}};\n }\n \n (function() {\n var brtrk = document.createElement('script');\n brtrk.type = 'text/javascript';\n brtrk.async = true;\n brtrk.src = 'https:' == document.location.protocol ? \"https://cdns.brsrvr.com/v1/br-trk-{{BloomReach Account ID}}.js\" : \"http://cdn.brcdn.com/v1/br-trk-{{BloomReach Account ID}}.js\";\n var s = document.getElementsByTagName('script')[0];\n s.parentNode.insertBefore(brtrk, s);\n })();\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659550099397",
"firingTriggerId": [
"2147479553"
],
"parentFolderId": "12",
"tagFiringOption": "ONCE_PER_LOAD",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "27",
"name": "BloomReach Search Event",
"type": "html",
"notes": "When a user clicks on the submit button or hits the enter key on a search form, BloomReach expects a Search Submit Event to fire.\n\nNote: the next pixel that is fired (typically the search page view pixel) will automatically contain the parameters fired in Search Submit event pixel prefixed with \"df_\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('suggest', 'submit', {{BloomReach Search Data}}, {}, true);\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659550099398",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "28",
"name": "BloomReach Add To Cart Event",
"type": "html",
"notes": "When a user adds an item to their cart, BloomReach's Add To Cart Event should fire. Typically this includes the product display page and product listing pages such as category or search pages.\n\nIf an Add To Cart button is located anywhere else on your site (e.g. Product Collection or Sku Set pages) , please also fire this tag there as well.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent(\"cart\", \"click-add\", {{BloomReach Cart Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659550099398",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "30",
"name": "BloomReach Suggest Event",
"type": "html",
"notes": "If you have an auto-suggest feature in your search form, when a user clicks on a search suggestion, BloomReach expects a Search Suggest Event to fire.\n\nNote: the next pixel that is fired (typically the search page view pixel) will automatically contain the parameters fired in Search Suggest event pixel prefixed with \"df_\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('suggest', 'click', {{BloomReach Suggest Data}}, {}, true);\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659550099399",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "31",
"name": "BloomReach Widget Add To Cart Event",
"type": "html",
"notes": "This tracks the customer’s activity when the ATC button within a widget is clicked. This pixel is optional and should be installed only if you have placed an Add-to-Cart button within a widget.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent(\"cart\", \"widget-add\", {{BloomReach Widget Cart Data}});\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659551998099",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "32",
"name": "BloomReach Widget Click Event",
"type": "html",
"notes": "When a customer clicks on a Recommendation widget, a click event occurs and is tracked by a Javascript tracking pixel.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('widget', 'widget-click', {{BloomReach Widget Data}}, true)\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659552034523",
"parentFolderId": "3",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"tagId": "33",
"name": "BloomReach Widget View",
"type": "html",
"notes": "This pixel tracks the impressions of the customer whenever a recommendation widget is viewed by the customer. For every widget that is added to the page, a corresponding widget view pixel has to be fired.",
"parameter": [
{
"type": "TEMPLATE",
"key": "html",
"value": "<script type=\"text/javascript\">\n BrTrk.getTracker().logEvent('widget', 'widget-view', {{BloomReach Widget View Data}}, true)\n</script>"
},
{
"type": "BOOLEAN",
"key": "supportDocumentWrite",
"value": "false"
}
],
"fingerprint": "1659552087763",
"parentFolderId": "12",
"tagFiringOption": "ONCE_PER_EVENT",
"monitoringMetadata": {
"type": "MAP"
},
"consentSettings": {
"consentStatus": "NOT_SET"
}
}
],
"variable": [
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "5",
"name": "BloomReach Quick View Data",
"type": "jsm",
"notes": "The BloomReach Quick View Object contains detailed product information about a product being viewed in a Quick View. An example Quick View object that this variable might return:\n\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",\n \"prod_name\": \"cashmere sweater\"\n}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.\n\nname: prod_name\ntype: String\nexample: \"Cashmere Sweater\"\ndescription: Product Name.\n\n## Additional Details\n\nIf the Product Quick View is a Product Collection, Product Bundle or Sku Set:\n (a) Your Collection Pages have their own unique ID and are sold exactly like standalone products, then enter the collection ID in the prod_id \n field. Make sure that this collection ID is sent in the feed in the product ID field.\n\n (b) Your Product Collections have their own unique ID, but cannot be purchased as a whole; only the collections' individual parts/products \n can be purchased and each of these individual parts have their own ID. In this case, enter the collection ID in the prod_id field. Make sure \n that this collection ID is sent in the feed in the product ID field.\n\n (c) Your Products are a part of a Collection but can only be purchased from their own individual product page. In this case enter the product \n ID of the first product in the prod_id field.\n\n## Additional Examples\n\nQuick view for product with a Sku:\n\n{\"prod_id\": \"34561234\", \"prod_name\": \"Blue Lace Dress\", \"sku\": \"987\"}\n\nQuick view for product without a sku:\n\n{\"prod_id\": \"12349028\", \"prod_name\": \"Beach Ball\"}\n\nQuick view for a Product Bundle: \n\n{\"prod_id\": \"set223344\", \"prod_name\": \"Linen Bed Set\"}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"prod_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552473323",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "7",
"name": "BloomReach Cart Data",
"type": "jsm",
"notes": "The BloomReach Cart Object contains detailed product information when a product is added to a cart. An example Cart object that this variable might return:\n\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\"\n}\n\n## Detailed Cart Spec\n\nType: Object\n\nProperties:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"prod_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552460822",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "8",
"name": "BloomReach Basket",
"type": "jsm",
"notes": "The BloomReach Basket Object contains detailed conversion parameters for each product that was purchased. An example basket object that this variable might return:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",.\n \"name\": \"Cashmere Sweater\",\n \"quantity\": \"1\",\n \"price\": \"65.95\"\n }\n }\n\n## Detailed Basket Spec\n\nType: Object\n\nThis object contains a property called `items` which is an array of the product objects purchased. For each product in the `items` array, the following properties should be included as specified:\n\nname: prod_id\ntype: String\nexample: \"pid123456\"\ndescription: Product ID. Needs to match Product ID sent in feed.\n\nname: sku\ntype: String\nexample: \"sku789\"\ndescription: Product SKU. Should match SKU ID sent in feed. Only applies if you have SKUs.\n\nname: name\ntype: String\nexample: \"Cashmere Sweater\"\ndescription: Product Name.\n\nname: quantity\ntype: Integer\nexample: 2\ndescription: Quantity of this product in the basket\n\nname: price\ntype: String\nexample: \"pid123456\"\ndescription: Unit price *per* product, not the total price. If item is on sale, this is the unit sale price.\n\n## Additional Examples\n\n2 products, first product has a sku, second product does not have a sku:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"pid123456\",\n \"sku\": \"sku789\",.\n \"name\": \"Cashmere Sweater\",\n \"quantity\": \"1\",\n \"price\": \"65.95\"\n },\n {\n \"prod_id\" : \"pid56789\",\n \"sku\": \"\",\n \"name\": \"Blue Skinny Jeans\",\n \"quantity\": \"2\",\n \"price\": \"79.99\"\n }\n ]\n };\n\n2 products, first product is a Product Bundle, second product is an individual product:\n\n{\n \"items\": [\n {\n \"prod_id\" : \"bundle223344\",\n \"sku\": \"\",.\n \"name\": \"Linen Bed Sheet Set\",\n \"quantity\": \"1\",\n \"price\": \"265.95\"\n },\n {\n \"prod_id\" : \"pid56789\",\n \"sku\": \"\",\n \"name\": \"Blue Skinny Jeans\",\n \"quantity\": \"2\",\n \"price\": \"79.99\"\n }\n ]\n};\n\n## Additional Details \n\nIf the item in the basket is a Product Collection, Product Bundle or Sku Set:\n (a) Your Collection Pages have their own unique ID and are sold exactly like standalone products, then enter the collection ID in the prod_id \n field. Make sure that this collection ID is sent in the feed in the product ID field.\n\n (b) Your Product Collections have their own unique ID, but cannot be purchased as a whole; only the collections' individual parts/products \n can be purchased and each of these individual parts have their own ID. In this case, list all individual products in the basket and the \n prod_id is the the ID of each product. Make sure that each product ID is sent in the feed in the product ID field.\n\n (c) Products that are a part of a Collection but can only be purchased from their own individual product page. In this case follow the same \n guideline as described in (b)\n\n## Custom Javascript Variable Example\n\nThis variable will normally be setup as the Custom JavaScript type. Here is an example of the function you might write. The example assumes you've implemented Google Enhanced Ecommerce and the purchase object is available on the data layer.\n\nfunction () {\n var products = google_tag_manager[{{Container ID}}].dataLayer.get(\"ecommerce.purchase.products\");\n var item;\n var items = [];\n\n if (products && products.length > 0) {\n for (var i = 0; i < products.length; i++) {\n console.log(products[i]);\n item = {};\n item.prod_id = products[i].id;\n item.name = products[i].name;\n item.quantity = products[i].quantity;\n item.price = products[i].price;\n items.push(item);\n }\n }\n\n return {\"items\": items};\n}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"items\": [{\n \"prod_id\": \"EXAMPLEVALUE\", \n \"sku\": \"EXAMPLEVALUE\", \n \"name\": \"EXAMPLEVALUE\", \n \"quantity\": \"EXAMPLEVALUE\", \n \"price\": \"EXAMPLEVALUE\" }]\n }; \n}"
}
],
"fingerprint": "1659550099392",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "9",
"name": "BloomReach Product Name",
"type": "jsm",
"notes": "The name of the product being viewed.\n\nFor Product PageViews (single product, product collection, product bundle, or sku set pages) only.\n\nVariable Type: String\nVariable Example: \"Blue Lace Dress\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099392",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "10",
"name": "BloomReach Order ID",
"type": "jsm",
"notes": "The order id associated with the order placed. This id should match the orderID used in your analytics systems. This is used to reconcile BloomReach's analytics data with your analytics systems.\n\nVariable Type: String\n\nExample: \"12123455\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099392",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "11",
"name": "BloomReach Tag Manager ID",
"type": "c",
"notes": "When more than one tag management solutions are firing BloomReach pixels simultaneously, this value is used as an identifier to filter out duplicate pixels. This value can be any string identifier as long as it is constant per tag manager solution.\n\nVariable Type: String\nExample Values: \"gtm\", \"googletagmanager\", \"dtm\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "gtm"
}
],
"fingerprint": "1659550099389",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "13",
"name": "BloomReach Account ID",
"type": "c",
"notes": "The BloomReach-provided Account identifier. This ID is a constant and is pre-populated. If your account ID is not pre-populated, please reach out to your Technical Project Manager.\n\nVariable Type: String\nExample: \"1235\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "value",
"value": "5014"
}
],
"fingerprint": "1659550099390",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "14",
"name": "BloomReach Search Term",
"type": "jsm",
"notes": "For search page views only, this it the value of the search query describing the page.\n\nVariable Type: String\nExample Values: \"blue dress\", \"red dress\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099393",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "15",
"name": "BloomReach Basket Value",
"type": "jsm",
"notes": "The total price of the checkout basket including tax, shipping and/or discounts in the account currency.\n\nVariable Type: String\n\nFormat: The total price of the checkout basket, in the account currency, without any symbols. \n\nExample: If the checkout basket was $100 with $5 tax and $10 shipping, the value for this parameter should be \"115.00\".",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099393",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "16",
"name": "BloomReach Product ID",
"type": "jsm",
"notes": "This is the unique ID, which describes a product, product bundle, product collection or sku set. If a product is available in multiple SKUs (e.g. color/size combinations), this field refers to the id shared by all the SKUs for a product.\n\nData Type: String, This field value is case-sensitive.\n\nDependencies: This field needs to match the unique product id sent in the feed.\n\nExamples:\n(1) Product Page: If your product ID is prod1234, return \"prod1234\"\n\n(2) Product Collection Page: \n (a) If your Product Collection page has their own unique ID and is sold exactly like a standalone product, enter the collection ID. Make sure that this collection ID is sent in the feed as a product ID.\n\n (b) If your Product Collection has their own unique ID, but cannot be purchased as a whole; only the collections' individual parts can be purchased and each of these individual parts have their own ID, enter the collection ID. Make sure that this collection ID is sent in the feed as a product ID.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099393",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "17",
"name": "BloomReach Domain Key",
"type": "jsm",
"notes": "The BloomReach-provided ID of the domain receiving the request. This parameter identifies the specific site language version when one account ID hosts multiple site versions with different languages. BloomReach uses this value to ensure that only query and analytics data that pertain to that language are used for respective features.\n\nVariable Type: String, This field value is case-sensitive.\n\nAdditional information: Your BloomReach Technical Account Manager will provide this information during technical Kickoff call if necessary.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099394",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "18",
"name": "BloomReach View ID",
"type": "jsm",
"notes": "Identifies the specific site catalog view to show when one BloomReach account ID hosts multiple site versions with unique product catalog characteristics, such as product price, availability, or titles. BloomReach uses View ID value to display the right product information for a user based on their site view. This must be consistent in the pixel, API and product catalog sent to BloomReach.\n\nThis field value is case-sensitive.\n\nVariable Type: String\nExample Value: \"10200\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099394",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "19",
"name": "BloomReach Is Conversion",
"type": "jsm",
"notes": "Set to 1 on the Conversion or Thank you page (page after the customer completes the purchase).\n\nVariable Type: Integer\n\nExample: 1",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099394",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "20",
"name": "BloomReach User ID",
"type": "jsm",
"notes": "Universal customer ID, if you use one, to pass to BloomReach to recognize users in a way that is aligned with our system for various personalization features. Should be an anonymized string and should not contain the user's email or other personally identifiable information.\n\nVariable Type: String\nExample Value: \"947345478564\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099395",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "21",
"name": "BloomReach Category",
"type": "jsm",
"notes": "The breadcrumb of the page.\n\nDependencies: Needs to match the \"crumbs\" field in the product feed that you send to BloomReach.\n\nVariable Type: String\n\nFormat: <top level crumb>|<first level crumb>|<second level crumb>\nCrumbs need to be delimited by |\n\nExample:\nIf your category crumb is \"Home/Clothing/Outerwear\", then return \"Home|Clothing|Outerwear\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099395",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "22",
"name": "BloomReach Page Type",
"type": "jsm",
"notes": "Maps your site's page type classifications to the values BloomReach expects for our page type classifications.\n\nRequired on *all* page views, including desktop, mobile, and tablet versions.\n\nBloomReach's Page Type classifications:\n\n* homepage - homepage or landing pages\n* category - category listing pages and category product listing pages\n* search - search listing pages\n* product - product, product bundle, product collection or sku set pages\n* thematic - BloomReach thematic pages\n* content - content pages\n* other - any pagetype that is not one of the above types. If not one of above, required to return other.\n\nVariable Type: String of enumerated type of (\"homepage\", \"product', \"category\", \"search\", \"content\", \"thematic\", \"jfy\", \"mlt\", \"trend\")\n\nVariable Example: \"homepage\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"other\"; \n}"
}
],
"fingerprint": "1659550099396",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "23",
"name": "BloomReach Product SKU",
"type": "jsm",
"notes": "For Product PageViews only.\n\nUnique SKU ID representing the selected variant of this product (e.g. size M, color blue of a t-shirt). If SKU is not applicable to the product, leave this blank.\n\nVariable Type: String\nVariable Examples:\n\n\"789\"\n\"SM123\"",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099396",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "24",
"name": "BloomReach Category ID",
"type": "jsm",
"notes": "A Unique category ID as referred to in the database/catalog. This refers to the ID of the leaf node. \nIf your category page does not have a unique ID, but it has a unique breadcrumb path, then enter the name of the last crumb (leaf node).\nIf your category page does not have a unique bread crumb path, please consult with your BloomReach Technical Project Manager for options.\n\nDependencies: This should match the \"crumbs_id\" field in the product feed that you send to BloomReach. \nThis ID typically refers to the \"leaf\" of the crumb.\n\nVariable Type: String. This field value is case-sensitive.\n\nExample (1) with unique Category ID: \"cat749\"\n\nExample (2) with unique Bread Crumb path:\nIf you crumb path is Home/Women/Outerwear, enter \"Outerwear\" as Category ID. \nPlease ensure that this leaf node is sent in the \"crumbs_id\" field in the Product feed that you send to BloomReach.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659550099396",
"parentFolderId": "4"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "26",
"name": "BloomReach Search Data",
"type": "jsm",
"notes": "The BloomReach Search Submit Object contains information about the search query being submitted. For example, if a user types `blue dress` and then clicks the search button or hits enter to submit the search, this variable should return:\n\n{\"q\": \"blue dress\"}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: q\ntype: String\nexample: \"blue lace dress\"\ndescription: User's typed search query submitted to search box.",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n var searchData = {};\n searchData[\"q\"] = \"EXAMPLEVALUE\";\n searchData[\"catalogs\"] = [{ \"name\" : \"example_en\" }];\n searchData[\"customer_tier\"] = \"\";\n searchData[\"customer_geo\"] = \"\";\n searchData[\"customer_country\"] = \"\";\n searchData[\"customer_profile\"] = \"\";\n return searchData;\n}"
}
],
"fingerprint": "1659552485911",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "29",
"name": "BloomReach Suggest Data",
"type": "jsm",
"notes": "The BloomReach Search Suggest Object contains information about the search suggestion that was clicked as well as the typed value that lead to the suggestion from your auto suggest interface.\n\nFor example, when a user types `blu` and the auto-suggest window shows up and a user clicks the suggested search `blue summer dress`, this variable should return:\n\n{\n \"aq\": \"blu\",\n \"q\": \"blue summer dress\"\n}\n\n## Detailed Quick View Object Spec\n\nType: Object\n\nProperties:\n\nname: q\ntype: String\nexample: \"blue summer dress\"\ndescription: Value of suggested search, ie, search that is submitted to the search service.\n\nname: aq\ntype: String\nexample: \"blu\"\ndescription: User's typed search query submitted to search box.\n\n## Additional Examples:\n\n{\"aq\": \"re\", \"q\": \"red shoes\"}\n\n{\"aq\": \"blue su\", \"q\": \"blue summer dress\"}",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"aq\": \"EXAMPLEVALUE\",\n \"q\": \"EXAMPLEVALUE\"\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552495337",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "34",
"name": "BloomReach Catalog Array",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return [ { name : \"<example_en_prd>\" } ]; \n}"
}
],
"fingerprint": "1659552324400",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "35",
"name": "BloomReach Content Item ID",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659552342403",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "36",
"name": "BloomReach Content Item Name",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"EXAMPLEVALUE\"; \n}"
}
],
"fingerprint": "1659552361583",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "37",
"name": "BloomReach Customer Tier Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659552384761",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "38",
"name": "BloomReach Customer Geo Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659552401572",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "39",
"name": "BloomReach Customer Profile Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659552419281",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "40",
"name": "BloomReach Customer Country Segment",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return \"\"; \n}"
}
],
"fingerprint": "1659552439457",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "41",
"name": "BloomReach Widget Cart Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"sku\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552519651",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "42",
"name": "BloomReach Widget Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552542301",
"parentFolderId": "4",
"formatValue": {}
},
{
"accountId": "1321514653",
"containerId": "90821863",
"variableId": "43",
"name": "BloomReach Widget View Data",
"type": "jsm",
"parameter": [
{
"type": "TEMPLATE",
"key": "javascript",
"value": "function () {\n // This is a sample custom function with no implementation.\n // You will need to replace with own custom function that returns according to spec,\n // or choose different gtm variable type that returns according to spec.\n return {\n \"wrid\": \"EXAMPLEVALUE\",\n \"wq\": \"EXAMPLEVALUE\",\n \"wid\": \"EXAMPLEVALUE\",\n \"wty\": \"EXAMPLEVALUE\",\n \"item_id\": \"EXAMPLEVALUE\",\n \"customer_tier\": \"\",\n \"customer_geo\": \"\",\n \"customer_country\": \"\",\n \"customer_profile\": \"\",\n }; \n}"
}
],
"fingerprint": "1659552558527",
"parentFolderId": "4",
"formatValue": {}
}
],
"folder": [
{
"accountId": "1321514653",
"containerId": "90821863",
"folderId": "3",
"name": "BloomReach Events",
"fingerprint": "1659550099388"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"folderId": "4",
"name": "BloomReach Variables",
"fingerprint": "1659550099388"
},
{
"accountId": "1321514653",
"containerId": "90821863",
"folderId": "12",
"name": "BloomReach PageViews",
"fingerprint": "1659550099389"
}
],
"fingerprint": "1720798697713",
"tagManagerUrl": "https://tagmanager.google.com/#/versions/accounts/1321514653/containers/90821863/versions/0?apiLink=version"
}
}
Using the GTM Templates
The GTM template files require you to insert your correct Bloomreach values (account id, domain_key, view_id) as needed. Additionally, the variables within the template need to be mapped to the variables you have in GTM. Importing the template without configuring these variables will not result in a working pixel.
It will be your responsibility to do the following:
- For each Bloomreach tag, associate the proper triggers needed for the tag specification as provided in the tag's notes section.
- For each Bloomreach variable, configure the variable's type and definition to return data that matches our specification provided in the variable's notes section.
The Step-by-Step Guide below assumes that:
- You already have a GTM account and a container published on your website.
- You have edit permissions to the container you wish to implement against.
If you need further help, please see the main pixel specification or consult with your Bloomreach representative.
Step 1: Import Bloomreach tags/variables into your container
Your Bloomreach representative has created a JSON file that you can import into your GTM container. You can then modify the container triggers, variables, and rules as needed. You should also refer to Google's documentation to make your changes.
All Bloomreach items are prefixed with "Bloomreach" and are unlikely to conflict with existing items on your site. The items are categorized into folders prefixed with Bloomreach to help keep your container organized.
The name of the file follows the format BLOOMREACH-GTM-{{ACCT_ID}}-v1.json.
-
Sign in to your Google Tag Manager Account.
-
Select the container you wish to implement our pixels with.
-
Select the Admin tab to navigate to the account and container settings page.
-
In the container settings column, select Import Container.
-
Click the Choose Container File button and select your provided JSON file (BLOOMREACH-GTM-{{ACCT_ID}}-v1.json).
-
Select New workspace, name it Bloomreach Pixel Init, provide an optional description, and click Save.
-
[IMPORTANT] Select Merge as the import option and then Rename conflicting tags, triggers, and variables. The imported items are scoped with Bloomreach names and it's highly unlikely you'll encounter naming conflicts.
-
Preview, Verify, and then Confirm the import.
The Import Settings will look similar to image below, right before you confirm the import.
Step 2: Configure Bloomreach Tag Triggers
All Bloomreach tags, except Bloomreach PageView are added without an associated trigger. You need to add triggers to each of the remaining tags based on how your site is configured.
If your GTM container doesn't have an existing Trigger that satisfies the criteria for firing the Bloomreach tag, you will need to setup a new Trigger.
-
Navigate to Bloomreach Pixel Init workspace.
-
Select Tags left-hand navigation item.
-
Select the first Bloomreach tag.
-
Use the Notes section to understand when you should fire this tag on your site (e.g. when a user clicks on the add to cart button)
-
If you have an existing Trigger in GTM that satisfies the criteria, select Choose a trigger to make this tag fire and select from list of existing. If you do not have an existing Trigger, create one with the + icon.
-
Repeat steps 4-5 for each remaining BloomReach tag until all tags have triggers.
Bloomreach Tags will look similar to below after triggers are added:
Step 3: Configure Bloomreach Variables
At this point your tags will fire; however, they will be missing required data. You still need to configure each individual Bloomreach Variable.
Note
On initial import, each Bloomreach Variable has been imported with a default variable type and setting for illustration purposes. Out of the box, none of the variables will resolve properly until they are configured according to how your site and GTM container is setup.
-
Navigate to Bloomreach Pixel Init workspace.
-
Select Variables left-hand navigation item.
-
Select the first Bloomreach Variable.
-
Use the Notes section to understand how to configure what type of GTM variable to use to.
-
Select Variable Type and select the appropriate type from list. Commonly used ones will be Data Layer Variable, JS Variable, and Custom JavaScript.
-
Configure the variable such that when it is evaluated, it will return the type and format expected.
-
Click Save.
Note: For integrating pixel using Google Tag Manager, we don’t have a checkout/conversion event. We have a pageview event that requires conversion data to be passed in at the time of the pageview. In the pageview event, we have a parameter called 'is_conversion'
. For the Checkout Confirmation page(right after checkout), set the value of 'is_conversion'
parameter to "1". For the rest of the checkout process pages, set the value of 'is_conversion'
parameter to "0".
Step 4: Verify Pixel Implementation
-
Deploy Container to your development environment or use the preview functionality of GTM to simulate your Bloomreach Pixel work.
-
Use the Bloomreach Chrome Extension Pixel Validator to verify each tag.
-
If you have any validation issues, please update GTM container appropriately to resolve.
-
Notify your Bloomreach representative that container is deployed on staging.
Step 5: Publish
When you are confident your container is passing all validations and is ready to be deployed to production, publish your Bloomreach Pixel Init workspace to your production environment and notify your Bloomreach representative.
Step 6: Pixel Validation
The final step of the setup is to test your pixel configuration scenarios. Please follow the Bloomreach Pixel validation guidelines to ensure that your Bloomreach Pixel fires as expected.
Updated 4 months ago