How to change a partner ID according to the work environment?
It often happens that a partner offers you to have 2 account ids, one for your recipe environment, and the other for your production environment.
Last updated
It often happens that a partner offers you to have 2 account ids, one for your recipe environment, and the other for your production environment.
Last updated
Go to the Tag options tab and select the internal variable menu and click on the add an internal variable button
Name the variable (e.g. id_google) and select the variable type "correspondence table".
Using the drop-down menu, select the variable that corresponds to your type of environment (for example env_work)
Indicate in the field on the left the value of my env_work variable in production (for example "Prod")
*recommendation: check the datalayer on my site, to be sure to enter the right value
Enter the desired value for the production partner ID in the field on the right
Repeat the 2 previous steps, but this time indicating the expected values of the recipe environment.
OR simply specify a default partner id value (i.e. if env_work is not equal to "Prod" then the default value will be used)
Save this new variable
You must now modify your tag so that it returns the dynamic value of this variable. Go to the Edit Tag step
Replace the id (which was a fixed value) in the mapping of your tag by your new variable, using the drop-down menu. Save the tag and generate the container
Deploy the container in pre-production to ensure that everything is functional before going into production.
If the QA is validated, deploy the container in production.