Conversion tracking
-
Hi there,
I have found that Google Analytics isn’t recording all of the conversions on my site (only 80%), so I have been getting assistance from a friend who is an expert in analytics. Currently, I use a section within the contact form 7 plugin to apply a piece of code that fires/triggers the custom event. My friend has advised me to add a new piece of code directly into the HTML of the site.
the code would go on the line
<form action=”/free-trial#wpcf7-f15650-p15651-o1″ method=”post” class=”wpcf7-form cf7_custom_style_1 sent” novalidate=”novalidate” _lpchecked=”1″>
So it becomes
<form action=”/free-trial#wpcf7-f15650-p15651-o1″ method=”post” onsubmit=”dataLayer.push({‘event’:’FreeTrialSubmit’});” class=”wpcf7-form cf7_custom_style_1 sent” novalidate=”novalidate” _lpchecked=”1″>
However, I can’t see this code on the HTML text area of the relevant pages within WordPress. Presumably it is set up so that you can’t access it from WordPress. I’ve been advised by my theme developer that the code could be in the Contact Form 7 plugin folder in WP-Content, however I can’t find it.
Please can someone advise where the above code might be located?
Thanks in advance,
Alex
The topic ‘Conversion tracking’ is closed to new replies.