Learn about the new features and functionalities in the GA4 Dimensions and Metrics Cheatsheet release notes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Código DataLayer productClick | |
dataLayer.push({ | |
"event": "productClick", | |
"ecommerce": { | |
"click": { | |
"actionField": { | |
"list": "shirts you may like" | |
}, | |
"products": [{ | |
"id": "9bdd2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
___TERMS_OF_SERVICE___ | |
By creating or modifying this file you agree to Google Tag Manager's Community | |
Template Gallery Developer Terms of Service available at | |
https://developers.google.com/tag-manager/gallery-tos (or such other URL as | |
Google may provide), as modified from time to time. | |
___INFO___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (()=>{ | |
var url = window.location.href; | |
var message = 'Introduce una dimensión'; | |
var result = window.prompt(message); | |
result = JSON.stringify(result); | |
if (url.indexOf('_r.explorerCard..seldim%3D%5B.*%26') < -1) { | |
var regex = new RegExp('_r.explorerCard..seldim%3D%5B.*%26'); | |
url = url.replace(regex, '_r.explorerCard..seldim%3D%5B"eventName",' + result + '%5D%26'); |