I'm trying to set up the tracking code in an online store, but I'm not sure how I can create the dynamic code for the scripts (for example, find the item ID) without being manually.

Can anyone help me or show an example of a script?

closed as off-topic by Sebastian Kessel, Reshma, glls, Raul, battery.cord Feb 13 at 16:04

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – Sebastian Kessel, Reshma, glls, Raul, battery.cord
If this question can be reworded to fit the rules in the help center, please edit the question.


This is out of scope for Marketing Cloud, as this highly depends on the CMS system behind your website. In many cases these variables are available within data layer of already implemented Google Tag Manager. Otherwise you will need to develop an integration using backend code (e.g PHP for Magento) to pass variables from the CMS to the Web & Mobile Collect. Please align without your e-com team on this.

Not the answer you're looking for? Browse other questions tagged or ask your own question.