Skip to main content

Hi,

I’am having some trouble with implementing datalayer in my form, because i can’t get the input values of 2 fields(not personal info) on google tag manager.

Or syas the variable is undefined or it gives me an error.

Sorry if i’m not allowed to ask this, but i don’t have senior company, and i’m still junior and starting to use datalayer with gtm

Hi @Plom, thanks for reaching out to us with this question!

 

Can you explain high level what you’re looking to accomplish and send us a link to the Unbounce page for the team to investigate?


Hi Phil,

In th mean time i have solved my problem, i was trying to pass the dataLayer about one of my collegues campaign managers, but the information wasn’t passing, i did some tweaks in the configuring and it all began to work how it is suposed to.

If you need some details, that can help someone else i can give it to you by PM


Thanks @Plom! Really glad you were able to figure this out :)

 

If you are okay with sharing the page you used it for and the steps you took, do you mind posting here within the same thread so future customers can reference what you did? If not, PM is fine!

 

 


1st - you have to check in tag manager, click on preview, and enter your landing page url;
2nd - submit your form and check on the debug window, the dataLayer tab. and check the fields you have on the form submissions, and those fields selectors;
3rd - After create a datalayer variable give it the name of your filds and paste the selector of the form field from the DataLayer there.
Then repeat step number 1 and check for your variable in the datalayer tab, to check if you configured it correctly.

If it doesn’t check if you correctly inserted the selectors of your forms.

Important Note!: If you have in your form a Name field, you cannot pass that value in the DataLayer, otherwise google will remove your lp, and ads, because your violating the Data protection protocol from google!!


@phildilello i cannot give you screenshots, because i may reveal personal data from my clients, or my company;
Also read these articles:
https://www.analyticsmania.com/post/datalayer-push/

https://developers.google.com/tag-platform/tag-manager/web/datalayer

https://support.google.com/tagmanager/answer/6164391?hl=en

if someone gets to you, tell them to contact me i will help them

Hope i helped some one!


Thank you so much for sharing all that detail @Plom👏


Reply