问题原文
原帖链接 · David · CC BY-SA 3.0
I would like to know if the value pushed into the datalayer is arbitrary when tracking form completion events.
Currently I add this in the Additional Settings in CF7 settings, as per the guide here - http://dcarlbom.com/google-tag-manager/contact-form-7-on-wordpress-with-gtm/#gref
on_sent_ok: "dataLayer.push({'event': 'gtm4wp.contactForm7Submitted'});"
Is the value gtm4wp.contactForm7Submitted something I can change in order to track 2 forms as separate events or is there a better way? I have a site that has 2 types of form, one is a standard free format message contact form and the other is used to arrange a callback. I'd like to segment the conversion data of each.
已采纳解答
原帖链接 · nyuen · CC BY-SA 3.0
Usually the event value is arbitrary and you can make it anything you want. What's important is that you trigger your GTM tag to fire exactly on that event. In this case, I'm not sure if CF7 specifically requires the event value to be exactly what you have there, but from a GTM point of view, as long as your Trigger event matches what is pushed as the event value, then your tags should fire.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
