Ce document décrit les paramètres pouvant être définis pour la balise Google Tags du gestionnaire.
Introduction
Chaque balise Google Tag Manager
comporte un code type
pour identifier la balise.
De plus, la plupart des balises comportent des paramètres (key
, type
paires) que vous pouvez définir dans le cadre d'un "objet de paramètre" lorsque vous créez ou
mettre à jour un tag. Pour savoir comment définir ces paramètres à l'aide d'un paramètre
consultez la colonne Paramètre
Documentation de référence.
Le reste de ce document fournit des informations détaillées sur toutes les balises compatibles pour le Web et pour mobile.
Tags Web
Balise HTML personnalisée
Code de type
html
Paramètres
Clé | Type |
---|---|
html |
template |
convertJsValuesToExpressions |
boolean |
usePostscribe |
boolean |
Exemple
{ "liveOnly": false, "name": "Sample Custom HTML", "parameter": [ { "key": "html", "type": "template", "value": "<script>alert('hello world')</script>" }, { "key": "convertJsValuesToExpressions", "type": "boolean", "value": "true" }, { "key": "usePostscribe", "type": "boolean", "value": "false" } ], "type": "html" }
Balise d'image personnalisée
Code de type
img
Paramètres
Clé | Type |
---|---|
useCacheBuster |
boolean |
url |
template |
cacheBusterQueryParam |
template |
Exemple
{ "liveOnly": false, "name": "Sample Custom Image Tag", "parameter": [ { "key": "useCacheBuster", "type": "boolean", "value": "true" }, { "key": "url", "type": "template", "value": "//{{a}}" }, { "key": "cacheBusterQueryParam", "type": "template", "value": "gtmcb" } ], "type": "img" }
Écouteurs d'événements
Écouteur de clics sur les liens
Code de type
lcl
Paramètres
Clé | Type | Remarques |
---|---|---|
checkValidation |
boolean |
|
waitForTags |
boolean |
|
waitForTagsTimeout |
template |
Nombre de millisecondes. Indiquez quand waitForTags=true .
|
Exemple
{ "name": "Sample Link Click Listener", "liveOnly": false, "parameter": [ { "type": "boolean", "key": "waitForTags", "value": "true" }, { "type": "boolean", "key": "checkValidation", "value": "true" }, { "type": "template", "key": "waitForTagsTimeout", "value": "2000" } ], "type": "lcl", }
Écouteur d'envois de formulaires
Code de type
fsl
Paramètres
Clé | Type | Remarques |
---|---|---|
waitForTags |
boolean |
|
checkValidation |
boolean |
|
waitForTagsTimeout |
template |
Nombre de millisecondes. Indiquez quand waitForTags=true |
Exemple
{ "liveOnly": false, "name": "Sample Form Submit Listener", "parameter": [ { "key": "waitForTags", "type": "boolean", "value": "false" }, { "key": "checkValidation", "type": "boolean", "value": "false" } ], "type": "fsl" }
Écouteur de clics
Code de type
cl
Paramètres
N/A
Exemple
{ "liveOnly": false, "name": "Sample Click Listener", "type": "cl" }
Écouteur de minuteur
Code de type
tl
Paramètres
Clé | Type | Remarques |
---|---|---|
eventName |
template |
|
interval |
template |
Nombre de millisecondes |
limit |
template |
Nombre maximal de déclenchements |
Exemple
{ "liveOnly": false, "name": "Sample Timer Listener", "parameter": [ { "key": "eventName", "type": "template", "value": "gtm.timer" }, { "key": "interval", "type": "template", "value": "{{a}}" }, { "key": "limit", "type": "template", "value": "5" } ], "type": "tl" }
Écouteur d'erreurs JavaScript
Code de type
jel
Paramètres
N/A
Exemple
{ "liveOnly": false, "name": "Sample JavaScript Error Listener", "type": "jel" }
Écouteur d'historique
Code de type
hl
Paramètres
N/A
Exemple
{ "liveOnly": false, "name": "Sample History Listener", "type": "hl" }
Suivi des annonces display
Projecteur Compteur
Code de type
flc
Paramètres
Clé | Type | Remarques |
---|---|---|
ordinalType |
template |
Au choix : STANDARD , UNIQUE , SESSION
|
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
useImageTag |
boolean |
|
customVariable |
list |
[key , value ] paires |
userVariable |
template |
La variable u= de la balise. |
transactionVariable |
template |
La variable tran= de la balise. |
sessionId |
template |
Indiquez si ordinalType est défini sur SESSION . |
Exemple
{ "liveOnly": false, "name": "Sample Floodlight Counter", "parameter": [ { "key": "ordinalType", "type": "template", "value": "STANDARD" }, { "key": "advertiserId", "type": "template", "value": "{{a}}" }, { "key": "groupTag", "type": "template", "value": "{{b}}" }, { "key": "activityTag", "type": "template", "value": "{{c}}" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "type": "list" "list": [ { "type": "map", "map": [ { "type": "template", "key": "key", "value": "u2" }, { "type": "template", "key": "value", "value": "u2_custom_var" } ] }, { "type": "map", "map": [ { "type": "template", "key": "key", "value": "u1" }, { "type": "template", "key": "value", "value": "u1_custom_var" } ] }, { "key": "userVariable", "type": "template", "value": "" }, { "key": "transactionVariable", "type": "template", "value": "" }, { "type": "template", "key": "sessionId", "value": "MySessionId" } ], "type": "flc" }
Projecteur Ventes
Code de type
fls
Paramètres
Clé | Type | Remarques |
---|---|---|
countingMethod |
template |
Au choix : TRANSACTIONS , ITEM_SOLD |
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
revenue |
template |
|
orderId |
template |
|
useImageTag |
boolean |
|
customVariable |
map |
Une liste de cartes, chacune avec un seul
Paire [key , value ]. |
userVariable |
template |
La variable u= de la balise. |
transactionVariable |
template |
La variable tran= de la balise. |
quantity |
template |
Indiquez si countingMethod est défini sur ITEM_SOLD . |
Exemple
{ "name": "Sample Floodlight Sales Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "countingMethod", "value": "TRANSACTIONS" }, { "type": "template", "key": "advertiserId", "value": "{{a}}" }, { "type": "template", "key": "groupTag", "value": "{{b}}" }, { "type": "template", "key": "activityTag", "value": "{{c}}" }, { "type": "template", "key": "revenue", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "{{b}}" }, { "type": "boolean", "key": "useImageTag", "value": "false" }, { "type": "map", "key": "customVariable", "map": [ { "type": "template", "key": "u2", "value": "u2_custom_var" }, { "type": "template", "key": "u1", "value": "u1_custom_var" } ] }, { "type": "template", "key": "userVariable", "value": "u_var" }, { "type": "template", "key": "transactionVariable", "value": "tran_var" } ], "type": "fls" }
Mediaplex – IFRAME MCT Balise
Code de type
mpm
Paramètres
Clé | Type | Remarques |
---|---|---|
placementId |
template |
|
roiName |
template |
|
pageName |
template |
|
uniqueUserId |
template |
Facultatif. |
Exemple
{ "name": "Sample Mediaplex IFRAME MCT Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "placementId", "value": "{{a}}" }, { "type": "template", "key": "roiName", "value": "1" }, { "type": "template", "key": "pageName", "value": "{{a}}" } ], "type": "mpm" }
Mediaplex – Standard Balise IMG ROI
Code de type
mpr
Paramètres
Clé | Type | Remarques |
---|---|---|
placementId |
template |
|
roiName |
template |
|
uniqueUserId |
template |
Facultatif. |
Exemple
{ "name": "Sample Mediaplex Standard IMG ROI Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "placementId", "value": "{{a}}" }, { "type": "template", "key": "roiName", "value": "1" }, { "type": "template", "key": "uniqueUserId", "value": "MyUniqueId" } ], "type": "mpr" }
Suivi des conversions Turn
Code de type
tc
Paramètres
Clé | Type | Remarques |
---|---|---|
customerId |
template |
ID de contrat de données |
orderId |
template |
Facultatif. |
orderValue |
template |
Facultatif. |
optOut |
template |
Facultatif. |
Exemple
{ "name": "Sample Turn Conversion Tracking", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "MyOrderId" }, { "type": "template", "key": "orderValue", "value": "MyOrderValue" }, { "type": "template", "key": "optOut", "value": "MyOptOut" } ], "type": "tc" }
Remarketing
AdRoll Smart Pixel
Code de type
asp
Paramètres
Clé | Type | Remarques |
---|---|---|
customerId |
template |
adroll_adv_id |
pixelId |
template |
adroll_pix_id |
conversionValueInDollars |
template |
Facultatif. |
customData |
map |
Facultatif. Une liste de cartes, chacune avec un seul [key ,
value ]. |
segmentName |
template |
Facultatif. |
Exemple
{ "name": "Sample AdRoll Smart Pixel", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "pixelId", "value": "{{a}}" }, { "type": "template", "key": "conversionValueInDollars", "value": "conversionValue" }, { "type": "map", "key": "customData", "map": [ { "type": "template", "key": "key2", "value": "World" }, { "type": "template", "key": "key1", "value": "Hello" } ] }, { "type": "template", "key": "segmentName", "value": "SegmentName" } ], "type": "asp" }
Remarketing Google Ads
Code de type
sp
Paramètres
Clé | Type | Remarques |
---|---|---|
googleConversionId |
template |
|
googleConversionLabel |
template |
Facultatif. |
customParamsFormat |
template |
Au choix : DATA_LAYER , USER_SPECIFIED |
dataLayerVariable |
template |
Pour les customParamsFormat = DATA_LAYER |
googleCustomParams |
list |
Pour les customParamsFormat = USER_SPECIFIED |
googleScreenName |
template |
Facultatif. |
Exemple
Où customParamFormat = DATA_LAYER
:
{ "name": "Sample Google Ads Remarketing", "liveOnly": false, "parameter": [ { "type": "template", "key": "googleConversionId", "value": "{{c}}" }, { "type": "template", "key": "googleConversionLabel", "value": "MyLabel" }, { "type": "template", "key": "customParamsFormat", "value": "DATA_LAYER" }, { "type": "template", "key": "dataLayerVariable", "value": "{{e}}" } ], "type": "sp" }
Où customParamFormat = USER_SPECIFIED
:
{ "name": "Sample Google Ads Remarketing", "liveOnly": false, "parameter": [ { "type": "template", "key": "googleConversionId", "value": "{{c}}" }, { "type": "template", "key": "googleConversionLabel", "value": "MyLabel" }, { "type": "template", "key": "customParamsFormat", "value": "USER_SPECIFIED" }, { "type": "list", "key": "googleCustomParams", "list": [ { "type": "map", "map": [ { "type": "template", "key": "key", "value": "key2" }, { "type": "template", "key": "value", "value": "World" } ] }, { "type": "map", "map": [ { "type": "template", "key": "key", "value": "key1" }, { "type": "template", "key": "value", "value": "Hello" } ] } ] } ], "type": "sp" }
Collecte de données Turn
Code de type
tdc
Paramètres
Clé | Type | Remarques |
---|---|---|
customerId |
template |
|
categoryId |
template |
Facultatif. |
keyword |
template |
Facultatif. |
dataProviderId |
template |
Facultatif. |
optOut |
template |
Facultatif. |
Exemple
{ "name": "Sample Turn Data Collection Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "customerId", "value": "{{a}}" }, { "type": "template", "key": "categoryId", "value": "myCategoryId" }, { "type": "template", "key": "keyword", "value": "myKeyword" }, { "type": "template", "key": "dataProviderId", "value": "myDataProviderId" }, { "type": "template", "key": "optOut", "value": "myOptOut" } ], "type": "tdc" }
Rechercher
Suivi des conversions Google Ads
Reportez-vous au suivi des conversions Google Ads dans la rubrique Mobile Balises
Marin Software
Code de type
ms
Paramètres
Clé | Type | Remarques |
---|---|---|
type |
template |
Au choix : TRACK_PAGEVIEW , TRACK_TRANSACTION |
clientId |
template |
|
anonymizeIp |
boolean |
Facultatif. |
conversionType |
template |
À partir de type = TRACK_TRANSACTION . |
useDataLayer |
boolean |
Pour les type = TRACK_TRANSACTION |
orderId |
template |
Pour les useDataLayer = false |
product |
template |
Pour les useDataLayer = false |
price |
template |
Pour les useDataLayer = false |
category |
template |
Pour les useDataLayer = false |
quantity |
template |
Pour les useDataLayer = false |
currencyCode |
template |
Pour les useDataLayer = false |
Exemple
Où type=TRACK_PAGEVIEW
:
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_PAGEVIEW" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" } ], "type": "ms" }
Où type = TRACK_TRANSACTION
et useDataLayer =
true
:
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "template", "key": "conversionType", "value": "myConversionType" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" }, { "type": "boolean", "key": "useDataLayer", "value": "true" } ], "type": "ms" }
Où type = TRACK_TRANSACTION
et useDataLayer =
false
:
{ "name": "Sample Marin Software Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "type", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "clientId", "value": "Client ID" }, { "type": "template", "key": "conversionType", "value": "myConversionType" }, { "type": "boolean", "key": "anonymizeIp", "value": "false" }, { "type": "template", "key": "orderId", "value": "myOrderId" }, { "type": "template", "key": "product", "value": "myProduct" }, { "type": "template", "key": "price", "value": "myPrice" }, { "type": "template", "key": "category", "value": "myCategory" }, { "type": "template", "key": "quantity", "value": "myQuantity" }, { "type": "template", "key": "currencyCode", "value": "myCurrencyCode" }, { "type": "boolean", "key": "useDataLayer", "value": "false" } ], "type": "ms" }
Audience
AdAdvisor
Code de type
_ta
Paramètres
Clé | Type |
---|---|
subscriberId |
template |
Exemple
{ "name": "Sample AdAdvisor Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "subscriberId", "value": "{{a}}" } ], "type": "_ta", }
Bizo Insight
Code de type
bzi
Paramètres
Exemple
Pixel universel de conception
Code de type
m6d
Paramètres
Clé | Type | Remarques |
---|---|---|
id |
template |
|
title |
template |
Facultatif. |
domain |
template |
Facultatif. |
company |
template |
Facultatif. |
location |
template |
Facultatif. |
employeeRange |
template |
Facultatif. |
standardIndustrialClassification |
template |
Facultatif. |
email |
template |
Facultatif. |
Clé | Type | Remarques |
---|---|---|
pixelId |
template |
|
pixelCheckValue |
template |
|
orderId |
template |
Facultatif. |
revenue |
template |
Facultatif. |
namespaceId |
template |
|
namespaceCheckValue |
template |
|
namespaceCode |
template |
Exemple
{ "name": "Sample Dstillery Pixel Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "pixelId", "value": "{{a}}" }, { "type": "template", "key": "pixelCheckValue", "value": "{{a}}" }, { "type": "template", "key": "orderId", "value": "myOrderId" }, { "type": "template", "key": "revenue", "value": "myRevenue" }, { "type": "template", "key": "namespaceId", "value": "{{a}}" }, { "type": "template", "key": "namespaceCheckValue", "value": "{{a}}" }, { "type": "template", "key": "namespaceCode", "value": "{{a}}" } ], "type": "m6d" }
Balise de conversion VisualDNA
Code de type
vdc
Paramètres
Clé | Type | Remarques |
---|---|---|
apiAccountKey |
template |
|
conversionId |
template |
|
identitySyncPlatformCode |
template |
Facultatif. |
Exemple
{ "name": "Sample Visual DNA Conversion Tag", "liveOnly": false, "parameter": [ { "type": "template", "key": "apiAccountKey", "value": "{{a}}" }, { "type": "template", "key": "conversionId", "value": "{{a}}" }, { "type": "template", "key": "identitySyncPlatformCode", "value": "mySyncPlatformCode" } ], "type": "vdc" }
Analytics
Universal Analytics
Code de type
ua
Paramètres
Clé | Type | Remarques |
---|---|---|
trackingId |
template |
|
type |
template |
Au choix: TRACK_PAGEVIEW , TRACK_EVENT ,
TRACK_TRANSACTION , TRACK_SOCIAL
TRACK_TIMING , DECORATE_LINK
DECORATE_FORM |
contentGroup |
list |
Facultatif. Liste des cartes, chacune avec une clé index et une
Clé group . |
dimension |
list |
Facultatif. Liste des cartes, chacune avec une clé index et une
Clé dimension . |
metric |
list |
Facultatif. Liste des cartes, chacune avec une clé index et une
Clé metric . |
functionName |
template |
Facultatif. |
fieldsToSet |
map |
Facultatif. Chaque paramètre de la liste est une carte. chaque paramètre map doit comporter deux
sous-paramètres: un avec la clé fieldName et un autre avec la clé value . La
Les champs suivants ne sont désormais accessibles qu'à l'aide de "fieldsToSet" : "anonymizeIp", "sessionControl", "referrer",
page, title (anciennement documentTitle), cookieName, cookieDomain, sampleRate, cookieExpiration
(anciennement cookieExpiration), cookiePath, forceSSL (anciennement forceSsl), allowLinker.
|
doubleClick |
boolean |
Facultatif. |
trackerName |
template |
Facultatif. trackerName peut être spécifié lorsque
setTrackerName == true |
useDebugVersion |
boolean |
Facultatif. |
autoLinkDomains |
template |
Facultatif. Ce champ peut être spécifié pour
TRACK_PAGEVIEW |
linkId |
template |
Facultatif. Activez l'attribution améliorée des liens. |
decorateFormsAutoLink |
boolean |
Facultatif. Ce champ peut être spécifié pour
TRACK_PAGEVIEW |
setTrackerName |
boolean |
Facultatif. |
useHashAutoLink |
boolean |
Facultatif. |
enableEcommerce |
boolean |
Facultatif. |
useEcommerceDataLayer |
boolean |
Facultatif. Ceci ne peut être spécifié que pour
eventType=TRACK_EVENT et/ou TRACK_PAGEVIEW . |
ecommerceMacroData |
template |
Facultatif. Ceci ne peut être spécifié que pour
eventType=TRACK_EVENT et/ou TRACK_PAGEVIEW et
lorsque useEcommerceDataLayer=false . |
eventCategory |
template |
Pour les eventType=TRACK_EVENT |
eventAction |
template |
Pour les eventType=TRACK_EVENT |
eventLabel |
template |
Pour les eventType=TRACK_EVENT |
eventValue |
template |
Pour les eventType=TRACK_EVENT |
nonInteraction |
template |
Pour les eventType=TRACK_EVENT |
socialNetwork |
template |
Pour les eventType=TRACK_SOCIAL |
socialAction |
template |
Pour les eventType=TRACK_SOCIAL |
socialActionTarget |
template |
Pour les eventType=TRACK_SOCIAL |
timingVar |
template |
Pour les eventType=TRACK_TIMING |
timingCategory |
template |
Pour les eventType=TRACK_TIMING |
timingLabel |
template |
Pour les eventType=TRACK_TIMING |
timingValue |
template |
Pour les eventType=TRACK_TIMING |
useHashDecorateLink |
boolean |
Pour les eventType=DECORATE_LINK |
useHashDecorateForm |
boolean |
Pour les eventType=DECORATE_FORM |
Exemple
Où trackType=TRACK_PAGEVIEW
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_PAGEVIEW" }, { "type": "list", "key": "contentGroup", "list": [ { "type": "map", "map": [ { "type": "template", "key": "index", "value": "1" }, { "type": "template", "key": "group", "value": "myContentGroup" } ] } ] }, { "type": "list", "key": "dimension", "list": [ { "type": "map", "map": [ { "type": "template", "key": "index", "value": "1" }, { "type": "template", "key": "dimension", "value": "myCustomDimension" } ] } ] }, { "type": "list", "key": "metric", "list": [ { "type": "map", "map": [ { "type": "template", "key": "index", "value": "1" }, { "type": "template", "key": "metric", "value": "myCustomMetric" } ] } ] }, { "type": "list", "key": "fieldsToSet", "list": [ { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "myFieldName" }, { "type": "template", "key": "value", "value": "myFieldValue" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "anonymizeIp" }, { "type": "template", "key": "value", "value": "true" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "allowLinker" }, { "type": "template", "key": "value", "value": "true" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "sessionControl" }, { "type": "template", "key": "value", "value": "mySessionControl" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "referrer" }, { "type": "template", "key": "value", "value": "myDocReferrer" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "page" }, { "type": "template", "key": "value", "value": "myDocPath" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "title" }, { "type": "template", "key": "value", "value": "myDocTitle" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "sampleRate" }, { "type": "template", "key": "value", "value": "mySampleRate" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "cookieName" }, { "type": "template", "key": "value", "value": "myCookieName" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "cookieDomain" }, { "type": "template", "key": "value", "value": "myCookieDomain" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "cookiePath" }, { "type": "template", "key": "value", "value": "myCookiePath" } ] }, { "type": "map", "map": [ { "type": "template", "key": "fieldName", "value": "cookieExpires" }, { "type": "template", "key": "value", "value": "myCookieExpirationInSeconds" } ] } ] }, { "type": "template", "key": "trackerName", "value": "myCustomTrackerName" }, { "type": "boolean", "key": "useDebugVersion", "value": "false" }, { "type": "template", "key": "autoLinkDomains", "value": "myAutoLinkDomain" }, { "type": "boolean", "key": "linkId", "value": "false" }, { "type": "boolean", "key": "decorateFormsAutoLink", "value": "false" }, { "type": "boolean", "key": "setTrackerName", "value": "true" }, { "type": "boolean", "key": "useHashAutoLink", "value": "false" }, { "type": "boolean", "key": "enableEcommerce", "value": "false" } ], "type": "ua" }
Où trackType=TRACK_EVENT
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_EVENT" }, { "type": "template", "key": "eventCategory", "value": "myCategory" }, { "type": "template", "key": "eventAction", "value": "myAction" }, { "type": "template", "key": "eventLabel", "value": "myLabel" }, { "type": "template", "key": "eventValue", "value": "myValue" }, "type": "ua" }
Où trackType=TRACK_TRANSACTION
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_TRANSACTION" } ], "type": "ua" }
Où trackType=TRACK_SOCIAL
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_SOCIAL" }, { "type": "template", "key": "socialNetwork", "value": "myNetwork" }, { "type": "template", "key": "socialAction", "value": "myAction" }, { "type": "template", "key": "socialActionTarget", "value": "myActionTarget" } ], "type": "ua" }
Où trackType=TRACK_TIMING
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_TIMING" }, { "type": "template", "key": "timingVar", "value": "myVar" }, { "type": "template", "key": "timingCategory", "value": "myCategory" }, { "type": "template", "key": "timingLabel", "value": "myLabel" }, { "type": "template", "key": "timingValue", "value": "myValue" } ], "type": "ua" }
Où trackType=DECORATE_LINK
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "DECORATE_LINK" }, { "type": "boolean", "key": "useHashDecorateLink", "value": "false" } ], "type": "ua" }
Où trackType=DECORATE_FORM
:
{ "name": "Sample Universal Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "trackingId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "DECORATE_FORM" }, { "type": "boolean", "key": "useHashDecorateForm", "value": "false" } ], "type": "ua" }
Version classique de Google Analytics
Code de type
ga
Paramètres
Clé | Type | Remarques |
---|---|---|
webPropertyId |
template |
|
type |
template |
Au choix: TRACK_PAGEVIEW , TRACK_EVENT ,
LINK |
siteSpeedSampleRate |
template |
Doit correspondre à une valeur numérique en pourcentage (0 à 100). |
cookiePath |
template |
|
page |
template |
|
domainName |
template |
|
allowLinker |
boolean |
|
sampleRate |
integer |
Plage de 0 à 100 |
campaignCookieTimeout |
template |
Doit correspondre à une valeur numérique représentant le délai avant expiration dans millisecondes. |
allowAnchor |
boolean |
|
sessionCookieTimeout |
template |
Doit correspondre à une valeur numérique représentant le délai avant expiration dans millisecondes. |
doubleClick |
boolean |
|
hitCallback |
template |
|
ignoredRef |
list |
Liste des URL de provenance à ignorer. |
ignoredRef[].value |
template |
Nom de l'URL de provenance |
customVar |
list |
Liste des cartes. Une seule carte par variable personnalisée. |
customVar[].slot |
integer |
|
customVar[].name |
template |
|
customVar[].value |
template |
|
customVar[].scope |
integer |
1 pour la portée Appel, 2 pour la portée session, et
3 pour la portée utilisateur. |
organic |
list |
|
organic[].searchEngine |
template |
|
organic[].queryParamName |
template |
|
organic[].prepend |
boolean |
|
ignoredOrganic |
list |
Liste de mots clés à ignorer. |
ignoredOrganic[].value |
template |
Mots clés à ignorer. |
title |
template |
|
campaignSourceOverride |
template |
|
campaignMediumOverride |
template |
|
campaignTermOverride |
template |
|
campaignContentOverride |
template |
|
campaignNameOverride |
template |
|
anonymizeIp |
boolean |
|
linkId |
boolean |
Facultatif. Activez l'attribution améliorée des liens. |
contentGroup |
list |
Liste des cartes. |
contentGroup[].index |
template |
Doit correspondre à un nombre entier. |
contentGroup[].group |
template |
Nom du groupe. |
campContentKey |
template |
|
campMediumKey |
template |
|
campNameKey |
template |
|
campNoKey |
template |
|
campSourceKey |
template |
|
campTermKey |
template |
|
campaignTrack |
boolean |
|
clientInfo |
template |
|
detectFlash |
template |
|
detectTitle |
template |
|
localGifPath |
template |
|
sendHitstToGoogle |
template |
|
referrerOverride |
template |
|
visitorCookieTimeout |
template |
Nombre de millisecondes. |
trackerName |
template |
|
cookiePathCopy |
list |
Liste des chemins de cookies. |
cookiePathCopy[].value |
template |
Chemin du cookie. |
useDebugVersion |
boolean |
|
forceSsl |
boolean |
|
setTrackerName |
boolean |
|
eventCategory |
template |
Pour les trackType=TRACK_EVENT |
eventAction |
template |
Pour les trackType=TRACK_EVENT |
eventLabel |
template |
Pour les trackType=TRACK_EVENT |
eventValue |
template |
Pour les trackType=TRACK_EVENT |
nonInteraction |
boolean |
Pour les trackType=TRACK_EVENT |
targetUrl |
template |
Pour les trackType=LINK |
useHashLink |
boolean |
Pour les trackType=LINK |
formObject |
template |
Pour les trackType=LINK_BY_POST |
useHashLinkByPost |
boolean |
Pour les trackType=LINK_BY_POST |
currencyCode |
template |
Facultatif. Pour les trackType=TRACK_TRANSACTION |
socialUseDataLayer |
boolean |
Facultatif. Pour les trackType=TRACK_SOCIAL |
socialNetwork |
template |
Pour trackType=TRACK_SOCIAL et
socialUseDataLayer=false |
socialAction |
template |
Pour trackType=TRACK_SOCIAL et
socialUseDataLayer=false
|
socialPagePath |
template |
Facultatif. Pour les trackType=TRACK_SOCIAL |
socialTarget |
template |
Pour trackType=TRACK_SOCIAL et
socialUseDataLayer=false |
timingCategory |
template |
Pour les trackType=TRACK_TIMING |
timingVariable |
template |
Pour les trackType=TRACK_TIMING |
timingTime |
template |
Pour les trackType=TRACK_TIMING |
timingLabel |
template |
Pour les trackType=TRACK_TIMING |
timingSampleRate |
template |
Pour les trackType=TRACK_TIMING |
useHashDecorateLink |
boolean |
Pour les trackType=DECORATE_LINK |
useHashDecorateForm |
boolean |
Pour les trackType=DECORATE_FORM |
Exemple
Où trackType=TRACK_PAGEVIEW
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "siteSpeedSampleRate", "value": "{{sampleRatePercent}}" }, { "type": "template", "key": "cookiePath", "value": "myCookiePath" }, { "type": "template", "key": "trackType", "value": "TRACK_PAGEVIEW" }, { "type": "template", "key": "page", "value": "myVirtualPagePath" }, { "type": "template", "key": "domainName", "value": "myDomainName" }, { "type": "boolean", "key": "allowLinker", "value": "true" }, { "type": "integer", "key": "sampleRate", "value": "10" }, { "type": "template", "key": "campaignCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "boolean", "key": "allowAnchor", "value": "true" }, { "type": "template", "key": "sessionCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "boolean", "key": "doubleClick", "value": "true" }, { "type": "list", "key": "ignoredRef", "list": [ { "type": "template", "value": "referrer1Ignore" }, { "type": "template", "value": "referrer2Ignore" } ] }, { "type": "list", "key": "customVar", "list": [ { "type": "map", "map": [ { "type": "integer", "key": "slot", "value": "1" }, { "type": "template", "key": "name", "value": "myCustomVar" }, { "type": "template", "key": "value", "value": "myCustomVarValue" }, { "type": "integer", "key": "scope", "value": "3" } ] } ] }, { "type": "list", "key": "organic", "list": [ { "type": "map", "map": [ { "type": "template", "key": "searchEngine", "value": "myOrganicSearchEngine" }, { "type": "template", "key": "queryParamName", "value": "mySearchQueryParamName" }, { "type": "boolean", "key": "prepend", "value": "true" } ] } ] }, { "type": "list", "key": "ignoredOrganic", "list": [ { "type": "template", "value": "keyword1Ignore" }, { "type": "template", "value": "keyword2Ignore" } ] }, { "type": "template", "key": "title", "value": "myPageTitle" }, { "type": "template", "key": "campaignSourceOverride", "value": "mySourceOverride" }, { "type": "template", "key": "campaignMediumOverride", "value": "myMediumOverride" }, { "type": "template", "key": "campaignTermOverride", "value": "myTermOverride" }, { "type": "template", "key": "campaignContentOverride", "value": "myContentOverride" }, { "type": "template", "key": "campaignNameOverride", "value": "myNameOverride" }, { "type": "boolean", "key": "anonymizeIp", "value": "true" }, { "type": "boolean", "key": "linkId", "value": "false" }, { "type": "list", "key": "contentGroup", "list": [ { "type": "map", "map": [ { "type": "template", "key": "index", "value": "1" }, { "type": "template", "key": "group", "value": "myContentGroup1" } ] } ] }, { "type": "template", "key": "campContentKey", "value": "myContentKey" }, { "type": "template", "key": "campMediumKey", "value": "myMediumKey" }, { "type": "template", "key": "campNameKey", "value": "myNameKey" }, { "type": "template", "key": "campNoKey", "value": "myNoOverrideKey" }, { "type": "template", "key": "campSourceKey", "value": "mySourceKey" }, { "type": "template", "key": "campTermKey", "value": "myTermKey" }, { "type": "boolean", "key": "campaignTrack", "value": "true" }, { "type": "boolean", "key": "clientInfo", "value": "true" }, { "type": "boolean", "key": "detectFlash", "value": "true" }, { "type": "boolean", "key": "detectTitle", "value": "true" }, { "type": "template", "key": "localGifPath", "value": "myLocalGIFPath" }, { "type": "boolean", "key": "sendHitsToGoogle", "value": "true" }, { "type": "template", "key": "referrerOverride", "value": "myReferrerOverride" }, { "type": "template", "key": "visitorCookieTimeout", "value": "{{timeoutInMilli}}" }, { "type": "template", "key": "trackerName", "value": "myTrackerName" }, { "type": "list", "key": "cookiePathCopy", "list": [ { "type": "template", "value": "/path/to/cookies1" }, { "type": "template", "value": "/path/to/cookies2" } ] }, { "type": "boolean", "key": "useDebugVersion", "value": "false" }, { "type": "boolean", "key": "forceSsl", "value": "false" }, { "type": "boolean", "key": "setTrackerName", "value": "true" } ], "type": "ga" }
Où trackType=TRACK_EVENT
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_EVENT" }, { "type": "template", "key": "eventCategory", "value": "myCategory" }, { "type": "template", "key": "eventAction", "value": "myAction" }, { "type": "template", "key": "eventLabel", "value": "myLabel" }, { "type": "template", "key": "eventValue", "value": "myValue" }, { "type": "boolean", "key": "nonInteraction", "value": "false" } ], "type": "ga" }
Où trackType=LINK
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "LINK" }, { "type": "template", "key": "targetUrl", "value": "TargetURL" }, { "type": "boolean", "key": "useHashLink", "value": "false" } ], "type": "ga" }
Où trackType=LINK_BY_POST
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "LINK_BY_POST" }, { "type": "template", "key": "formObject", "value": "{{a}}" }, { "type": "boolean", "key": "useHashLinkByPost", "value": "false" } ], "type": "ga" }
Où trackType=TRACK_TRANSACTION
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_TRANSACTION" }, { "type": "template", "key": "currencyCode", "value": "{{a}}" } ] "type": "ga" }
Où trackType=TRACK_SOCIAL
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_SOCIAL" }, { "type": "template", "key": "socialNetwork", "value": "mySocialNetwork" }, { "type": "template", "key": "socialAction", "value": "mySocialAction" }, { "type": "template", "key": "socialTarget", "value": "myTarget" }, { "type": "template", "key": "socialPagePath", "value": "myPagePaht" } ], "type": "ga" }
Où trackType=TRACK_TIMING
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "TRACK_TIMING" }, { "type": "template", "key": "timingCategory", "value": "myCategory" }, { "type": "template", "key": "timingVariable", "value": "myVariable" }, { "type": "template", "key": "timingTime", "value": "myTime" }, { "type": "template", "key": "timingLabel", "value": "myLabel" }, { "type": "template", "key": "timingSampleRate", "value": "{{sampleRatePercent}}" } ], "type": "ga" }
Où trackType=DECORATE_LINK
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "DECORATE_LINK" }, { "type": "boolean", "key": "useHashDecorateLink", "value": "false" } ], "type": "ga" }
Où trackType=DECORATE_FORM
:
{ "name": "Sample Classic Google Analytics", "liveOnly": false, "parameter": [ { "type": "template", "key": "webPropertyId", "value": "UA-00000-123" }, { "type": "template", "key": "trackType", "value": "DECORATE_LINK" }, { "type": "boolean", "key": "useHashDecorateForm", "value": "false" } ], "type": "ga" }
ClickTale Standard
Code de type
cts
Paramètres
Clé | Type |
---|---|
projectId |
template |
sampleRate |
template |
partition |
template |
Exemple
{ "name": "Sample ClickTale Standard Tracking", "liveOnly": false, "parameter": [ { "type": "template", "key": "projectId", "value": "{{a}}" }, { "type": "template", "key": "sampleRate", "value": "{{a}}" }, { "type": "template", "key": "partition", "value": "{{a}}" } ], "type": "cts" }
comScore Unified Digital Measurement
Code de type
csm
Paramètres
Clé | Type |
---|---|
clientId |
template |
Exemple
{ "name": "Sample comScore Unified Digital Measurement", "liveOnly": false, "parameter": [ { "type": "template", "key": "clientId", "value": "{{a}}" } ], "type": "csm" }
Tags pour mobile
Suivi des conversions Google Ads
Code de type
awct
Paramètres
Clé | Type |
---|---|
googleConversionId |
template |
googleConversionLabel |
template |
googleConversionValue |
template |
Exemple
{ "liveOnly": false, "name": "Google Ads Conversion Tracking", "parameter": [ { "key": "googleConversionId", "type": "template", "value": "{{a}}" }, { "key": "googleConversionLabel", "type": "template", "value": "{{a}}" }, { "key": "googleConversionValue", "type": "template", "value": "{{a}}" } ], "tagId": "1", "type": "awct" }
Remarketing Google Ads
Code de type
sp
Paramètres
Clé | Type | Remarques |
---|---|---|
googleConversionId |
template |
|
googleConversionLabel |
template |
|
customParamsFormat |
template |
Au choix: DATA_LAYER ou USER_SPECIFIED |
googleScreenName |
template |
Facultatif. |
dataLayerVariable |
template |
Pour customParamsFormat=DATA_LAYER ; doit se référer à un ensemble de données
de variable de couche. |
googleCustomParams |
list |
Liste de cartes, chacune avec une seule entrée [key , value ].
À partir de customParamsFormat=USER_SPECIFIED . |
googleCustomParams[].key |
template |
|
googleCustomParams[].value |
template |
Exemple
Où customParamsFormat=USER_SPECIFIED
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Google Ads Remarketing", "parameter": [ { "key": "conversionId", "type": "template", "value": "cvid" }, { "key": "conversionLabel", "type": "template", "value": "cvl" }, { "key": "customParamsFormat", "type": "template", "value": "USER_SPECIFIED" }, { "key": "customParams", "list": [ { "map": [ { "key": "key", "type": "template", "value": "cpk1" }, { "key": "value", "type": "template", "value": "cpv1" } ], "type": "map" } ], "type": "list" } ], "tagId": "2", "type": "sp" }
Où customParamsFormat=DATA_LAYER
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Google Ads Remarketing DataLayer", "parameter": [ { "key": "conversionId", "type": "template", "value": "cvid" }, { "key": "conversionLabel", "type": "template", "value": "cvl" }, { "key": "customParamsFormat", "type": "template", "value": "DATA_LAYER" }, { "key": "dataLayerVariable", "type": "template", "value": "{{dlv}}" } ], "tagId": "3", "type": "sp" }
Projecteur Compteur
Code de type
flc
Paramètres
Clé | Type | Remarques |
---|---|---|
ordinalType |
template |
Au choix : STANDARD , UNIQUE , SESSION
|
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
customVariable |
list |
[key , value ] paires |
userVariable |
template |
La variable u= de la balise. |
transactionVariable |
template |
La variable tran= de la balise. |
sessionId |
template |
Indiquez si ordinalType est défini sur SESSION . |
useImageTag |
boolean |
|
unrepeatable |
boolean |
Facultatif. |
Exemple
Où ordinalType=STANDARD
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Counter", "parameter": [ { "key": "ordinalType", "type": "template", "value": "STANDARD" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "list": [ { "map": [ { "key": "key", "type": "template", "value": "u3" }, { "key": "value", "type": "template", "value": "bar" } ], "type": "map" }, { "map": [ { "key": "key", "type": "template", "value": "u1" }, { "key": "value", "type": "template", "value": "foo" } ], "type": "map" } ], "type": "list" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "4", "type": "flc" }
Où ordinalType=SESSION
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Counter Per Session", "parameter": [ { "key": "ordinalType", "type": "template", "value": "SESSION" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "sessionId", "type": "template", "value": "session-id" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "type": "list" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "5", "type": "flc" }
Projecteur Ventes
Code de type
fls
Paramètres
Clé | Type | Remarques |
---|---|---|
countingMethod |
template |
Au choix : TRANSACTIONS , ITEM_SOLD |
advertiserId |
template |
|
groupTag |
template |
|
activityTag |
template |
|
revenue |
template |
|
orderId |
template |
Indiquez si countingMethod est défini sur ITEM_SOLD . |
customVariable |
map |
Une liste de cartes, chacune avec un seul
Paire [key , value ].
Mappez les clés d'élément entre u1 et u20 . Le type d'élément de carte est
modèle. |
userVariable |
template |
La variable u= de la balise. |
transactionVariable |
template |
La variable tran= de la balise. |
quantity |
template |
Indiquez si countingMethod est défini sur ITEM_SOLD . |
useImageTag |
boolean |
|
unrepeatable |
boolean |
Facultatif. |
Exemple
Où countingMethod=TRANSACTIONS
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Sales", "parameter": [ { "key": "countingMethod", "type": "template", "value": "TRANSACTIONS" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "revenue", "type": "template", "value": "{{revenue}}" }, { "key": "orderId", "type": "template", "value": "oid" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "map": [ { "key": "u1", "type": "template", "value": "jio" } ], "type": "map" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "6", "type": "fls" }
Où countingMethod=ITEM_SOLD
:
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Floodlight Sales Item Sold", "parameter": [ { "key": "countingMethod", "type": "template", "value": "ITEM_SOLD" }, { "key": "advertiserId", "type": "template", "value": "42" }, { "key": "groupTag", "type": "template", "value": "gts" }, { "key": "activityTag", "type": "template", "value": "ats" }, { "key": "quantity", "type": "template", "value": "1" }, { "key": "revenue", "type": "template", "value": "{{revenue}}" }, { "key": "orderId", "type": "template", "value": "oid" }, { "key": "useImageTag", "type": "boolean", "value": "false" }, { "key": "customVariable", "map": [ { "key": "u1", "type": "template", "value": "ji" } ], "type": "map" }, { "key": "userVariable", "type": "template", "value": "u" }, { "key": "transactionVariable", "type": "template", "value": "tran" } ], "tagId": "7", "type": "fls" }
Appel d'une fonction
Code de type
_fc
Paramètres
Clé | Type | Remarques |
---|---|---|
functionName |
template |
|
functionArgument |
map |
Une liste de cartes, chacune avec un seul
Paire [key , value ]. |
Exemple
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Function Call", "parameter": [ { "key": "functionName", "type": "template", "value": "fn" }, { "key": "functionArgument", "map": [ { "key": "argkey1", "type": "template", "value": "argval1" } ], "type": "map" } ], "tagId": "8", "type": "_fc" }
Universal Analytics
Code de type
ua
Paramètres
Clé | Type | Remarques |
---|---|---|
trackingId |
template |
|
type |
template |
Au choix: TRACK_APPVIEW , TRACK_EVENT ,
TRACK_SOCIAL , TRACK_TIMING
TRACK_EXCEPTION |
contentGroup |
list |
Chaque paramètre de la liste est une carte. chaque paramètre map doit comporter deux
sous-paramètres: un avec la clé index et un autre avec la clé
group |
dimension |
list |
Chaque paramètre de la liste est une carte. chaque paramètre map doit comporter deux
sous-paramètres: un avec la clé index et un autre avec la clé
dimension |
metric |
list |
Chaque paramètre de la liste est une carte. chaque paramètre map doit comporter deux
sous-paramètres: un avec la clé index et un autre avec la clé
metric |
fieldsToSet |
list |
Facultatif. Chaque paramètre de la liste est une carte. chaque paramètre map doit comporter deux
sous-paramètres: un avec la clé fieldName et un autre avec la clé value . La
Les champs suivants ne sont désormais accessibles qu'à l'aide de "fieldsToSet" : anonymizeIp, sessionControl, appName,
appVersion, screenName (anciennement contentDescription), sampleRate. |
nonInteraction |
boolean ou template |
Pour les trackType=TRACK_EVENT |
eventCategory |
template |
Pour les trackType=TRACK_EVENT |
eventAction |
template |
Pour les trackType=TRACK_EVENT |
eventLabel |
template |
Pour les trackType=TRACK_EVENT |
eventValue |
template |
Pour les trackType=TRACK_EVENT |
socialNetwork |
template |
Pour les trackType=TRACK_SOCIAL |
socialAction |
template |
Pour les trackType=TRACK_SOCIAL |
socialActionTarget |
template |
Pour les trackType=TRACK_SOCIAL |
timingVar |
template |
Pour les trackType=TRACK_TIMING |
timingCategory |
template |
Pour les trackType=TRACK_TIMING |
timingLabel |
template |
Pour les trackType=TRACK_TIMING |
timingValue |
template |
Pour les trackType=TRACK_TIMING |
exceptionDescription |
template |
Pour les trackType=TRACK_EXCEPTION |
exceptionFatal |
boolean ou template |
À partir de eventType=TRACK_EXCEPTION . Si le type est
template , la valeur doit faire référence à une macro qui
prend la valeur boolean . |
Exemple
Où trackType=TRACK_APPVIEW
:
{ "accountId": "103020", "containerId": "666282", "liveOnly": false, "name": "Universal Analytics App View", "parameter": [ { "key": "trackingId", "type": "template", "value": "UA-123-1" }, { "key": "trackType", "type": "template", "value": "TRACK_APPVIEW" }, { "key": "contentGroup", "list": [ { "map": [ { "key": "index", "type": "template", "value": "0" }, { "key": "group", "type": "template", "value": "cg0" } ], "type": "map" } ], "type": "list" }, { "key": "dimension", "list": [ { "map": [ { "key": "index", "type": "template", "value": "0" }, { "key": "dimension", "type": "template", "value": "dim0" } ], "type": "map" } ], "type": "list" }, { "key": "metric", "list": [ { "map": [ { "key": "index", "type": "template", "value": "0" }, { "key": "metric", "type": "template", "value": "cm0" } ], "type": "map" } ], "type": "list" }, { "key": "fieldsToSet", "list": [ { "map": [ { "key": "fieldName", "type": "template", "value": "fn0" }, { "key": "value", "type": "template", "value": "fv0" } ], "type": "map" }, { "map": [ { "type": "template", "key": "fieldName", "value": "anonymizeIp" }, { "type": "template", "key": "value", "value": "true" } ], "type": "map" }, { "map": [ { "type": "template", "key": "fieldName", "value": "appName" }, { "type": "template", "key": "value", "value": "myApp" } ], "type": "map" }, { "map": [ { "type": "template", "key": "fieldName", "value": "sessionControl" }, { "type": "template", "key": "value", "value": "mySessionControl" } ], "type": "map" } ], "type": "list" } ], "tagId": "9", "type": "ua" }
Où trackType=TRACK_EVENT
:
{ "accountId": "103020", "containerId": "666282", "liveOnly": false, "name": "Universal Analytics Event", "parameter": [ { "key": "trackingId", "type": "template", "value": "UA-123-1" }, { "key": "trackType", "type": "template", "value": "TRACK_EVENT" }, { "key": "nonInteraction", "type": "boolean", "value": "true" }, { "key": "contentGroup", "type": "list" }, { "key": "dimension", "type": "list" }, { "key": "metric", "type": "list" }, { "key": "fieldsToSet", "type": "list" }, { "key": "eventCategory", "type": "template", "value": "cat" }, { "key": "eventAction", "type": "template", "value": "act" }, { "key": "eventLabel", "type": "template", "value": "label" }, { "key": "eventValue", "type": "template", "value": "value" } ], "tagId": "10", "type": "ua" }
Où trackType=TRACK_SOCIAL
:
{ "accountId": "103020", "containerId": "666282", "liveOnly": false, "name": "Universal Analytics Social", "parameter": [ { "key": "trackingId", "type": "template", "value": "UA-123-1" }, { "key": "trackType", "type": "template", "value": "TRACK_SOCIAL" }, { "key": "contentGroup", "type": "list" }, { "key": "dimension", "type": "list" }, { "key": "metric", "type": "list" }, { "key": "fieldsToSet", "type": "list" }, { "key": "socialNetwork", "type": "template", "value": "network" }, { "key": "socialAction", "type": "template", "value": "action" }, { "key": "socialActionTarget", "type": "template", "value": "action-target" } ], "tagId": "11", "type": "ua" }
Où trackType=TRACK_TIMING
:
{ "accountId": "103020", "containerId": "666282", "liveOnly": false, "name": "Universal Analytics Timing", "parameter": [ { "key": "trackingId", "type": "template", "value": "UA-123-1" }, { "key": "trackType", "type": "template", "value": "TRACK_TIMING" }, { "key": "contentGroup", "type": "list" }, { "key": "dimension", "type": "list" }, { "key": "metric", "type": "list" }, { "key": "fieldsToSet", "type": "list" }, { "key": "timingVar", "type": "template", "value": "var" }, { "key": "timingCategory", "type": "template", "value": "cat" }, { "key": "timingLabel", "type": "template", "value": "label" }, { "key": "timingValue", "type": "template", "value": "value" } ], "tagId": "12", "type": "ua" }
Où trackType=TRACK_EXCEPTION
:
{ "accountId": "103020", "containerId": "666282", "liveOnly": false, "name": "Universal Analytics Exception", "parameter": [ { "key": "trackingId", "type": "template", "value": "UA-123-1" }, { "key": "trackType", "type": "template", "value": "TRACK_EXCEPTION" }, { "key": "contentGroup", "type": "list" }, { "key": "dimension", "type": "list" }, { "key": "metric", "type": "list" }, { "key": "fieldsToSet", "type": "list" }, { "key": "exceptionDescription", "type": "template", "value": "description" }, { "key": "exceptionFatal", "type": "boolean", "value": "true" } ], "tagId": "13", "type": "ua" }
Balise d'image personnalisée
Code de type
img
Paramètres
Clé | Type | Remarques |
---|---|---|
useCacheBuster |
boolean |
Macros non autorisées. |
url |
template |
|
cacheBusterQueryParam |
template |
Exemple
{ "accountId": "103020", "containerId": "666282", "firingRuleId": [ "1" ], "liveOnly": false, "name": "Custom Image Tag", "parameter": [ { "key": "useCacheBuster", "type": "boolean", "value": "true" }, { "key": "url", "type": "template", "value": "http://www.example.com" }, { "key": "cacheBusterQueryParam", "type": "template", "value": "gtmcb" } ], "tagId": "14", "type": "img" }