0

Problem Description: App Id is not captured in Google Tag manager some time on submit button click event in Mobile App.

Problem Background : I am having verify OTP page(OTP grid) and Submit button in Vue 2 components and used Google Tag Manager with below code. App Id will comes in URL as param on my login page and saved in Session Storage >> User Enter Login details >> Verify OTP page. When user entered wrong OTP and click on Submit button then all values from datalayer is always captured in GTM except app Id(Intermittent) which we are reading from browser session storage :

window.dataLayer.push({
 event: "trackEvent",
 "eventDetails.action": "val1",
 "eventDetails.action": "load",
 "eventDetails.label": "load - reg",
 "appId": sessionStorage.getItem("appId") // Saved in session storage on login page
});
Drew Reese
207k19 gold badges278 silver badges292 bronze badges
asked Sep 17 at 11:21

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.