GTM event stored in PHP variable

I like to store Event value into PHP value. How to do this in the correct way?
“event”: “ipEvent”,
“ipCountry”: “IE”,
“gtm.uniqueEventId”: 6

I’m not quite sure what you are asking, but that looks like json data.
You can convert json data to a PHP array or object with json_decode() if that helps.

I know very little about marketing, but if “GTM” is “Google Tag Manager” the Developer Guide page has quite a bit about the data layer eg.

I think what you want is the Enhanced Ecommerce (UA) page

Even if one of the functions is close but not exactly what you’re interested in doing, can you get it to work?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.