Google Analytics & GTM support
Analytics
You can monitor your webtraffic using the Google Analytics tag. Once saved and rebuilt the lightR Headless PWA solution is firing the Google Analytics tag upon page renders from local devices.
GTM
The Google Tag Manager can be used (limited) with the LightR eCommerce enviroment. Generated trigger events require to be pasted in to the lightR control module.
Magento admin:
lightR config > Website Config > Select store view > Google Settings
Analytics
Copy Paste the UI tracking code from Google Analytics into the designated field and Flush Cache to rebuild the installed applications.
GTM
Copy Paste the GTM code from Google Tag Manager into the field, Save and Flush Cache to trigger a rebuild of the applications.
GTM conversion event code
Create a GTM conversion event code in you Google Tag Manager toolset. The event will be triggered upon loading https://[domain.com]/checkout/success url.
Magento admin:
lightR config > Website Config > Select store view > Google Settings
How to generate the GTM conversion tag
3. Copy value Conversion ID and Conversion label and format them together in the following format.
also read :
https://support.google.com/tagmanager/answer/6105160
"AW-[conversion ID]/[conversion label"
example: AW-959634117/NBFWCNnEsdMBEMW1y8kD