大网数据广告活动
网站运营与故障问答

Tracking multiple forms from Contact Form 7 in GA as separate events

· 52CE 我爱测

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-ta…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-11-04)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。