Click event tracking is not working
-
Added several advanced click events to plugin.
.button.join-newsletter .button.contact a[href^="mailto:"]
Elements are:
<button class="button join-newsletter" type="button" title="Join newsletter">Join newsletter</button> <button class="button contact" type="button" title="Contact us">Contact us</button> <a href="mailto:[email protected]">[email protected]</a>
1) But none of them is working!
It generates code in footer:
<!-- BEGIN: wpflow ga events array --> <script> jQuery(document).ready(function() { scroll_events.bind_events( { universal: 1, gtm:0, gst:0, scroll_elements: [], click_elements: [{'select':'.button.join-newsletter','category':'button.join-newsletter','action':'click','label':'.button.join-newsletter','bounce':'false','evalue':''},{'select':'.button.contact','category':'button.contact','action':'click','label':'button.contact','bounce':'false','evalue':''},{'select':'a[href^="mailto:"]','category':'mailto','action':'click','label':'mailto','bounce':'false','evalue':''}], }); }); </script> <!-- END: wpflow ga events array -->
2) How can i get mailto href value automatically as Event label?
I also use Woocommerce events plugin and Contact Form 7 events. And they are working great. What can be wrong with your plugin?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Click event tracking is not working’ is closed to new replies.