Hey everyone I have implemented enhanced conversi...
# markops
a
Hey everyone I have implemented enhanced conversion using GTM without the need for developer, I have passed the PI data from one page to another, listing the steps below. One way to implement enhanced conversion without needing a developer is by using the browser's session storage feature. The advantage of session storage is that it is only valid for the current session. However, a disadvantage is that it cannot be used if the thank you page opens in a new tab or the session expires. When the tab is closed, the data is removed. Get the DOM element using variables in GTM. You can use the element ID or a CSS selector. Create a custom HTML tag and use the following code: <script> sessionStorage.setItem("email", "{{your variable name}}"); sessionStorage.setItem("phone", "{{your variable name}}"); </script> Fire this tag on the submit button click. The reason for this is that if the form is not filled due to validation, it will not reach the thank you page, and the variable can be overwritten once it reaches the thank you page. Now use a custom JavaScript variable. Use this code for email and phone separately: javascript function() {  var keyValue = sessionStorage.getItem('email');  return keyValue; } Use the variables from step 3 in user-defined variables for manual insertion. Your variable name has to match the DOM element variable name you have. Happy tagging!
🙌 1
👍 1