goal-tracking

Tracking in Universal Analytics - Contact form 7

为君一笑 提交于 2019-12-12 02:59:35
问题 I have contact form 7 on a site. With classic analytics I had this in additional settings.. on_sent_ok: "_gaq.push(['_trackPageview', '/goals/enquiry-sent']);" And it tracked fine as a destination goal. As soon as I updated to Universal analytics (including the demographics tracking), I then updated the code to: on_sent_ok: "ga('send', 'event', 'category', 'action', 'label');" and also tried on_sent_ok: "ga('send', 'pageview', '/your/url');" and I just can't get either of them to track. Any

RegEx for Dynamic URL Goals settings

房东的猫 提交于 2019-12-11 06:12:51
问题 I have tried to work this RegEx to set up a goal in GA for 2 days, but I cannot get my head around it... The URL format is like this: /purchase.php?cDd=1&transaction_id=xxxxxxx&verify=xxxxxxxxxxxxxxxx=&method=creditcard&type=purchase transaction_id= is populated with a sept of numbers verify= is populated by a string of numbers, letters in both caps and lower case Basically I would like to only match URLs which finish by &method=creditcard&type=purchase I have tried to just put &method

Track button click as goal in Google Analytics

大憨熊 提交于 2019-11-29 20:29:12
I have a button on my website, clicking on this button reveals a phonenumber. HTML <div class="call-wrapper-middle"> <button id="call-phone-middle"><i class="fa fa-phone"></i>Call us</button> <div class="call-number-middle" style="display: block;"> <a href="tel:555" class="number">555</a></div> </div> Using the following jQuery (function($) { $("button#call-phone-middle").click(function() { $(this).hide(); $("div.call-number-middle").show(); }); })(jQuery); This works great. But I also wish to track the clicks on the button as a goal in Google Analytics. So I added href="/show/phonenumber

Track button click as goal in Google Analytics

旧街凉风 提交于 2019-11-28 16:31:51
问题 I have a button on my website, clicking on this button reveals a phonenumber. HTML <div class="call-wrapper-middle"> <button id="call-phone-middle"><i class="fa fa-phone"></i>Call us</button> <div class="call-number-middle" style="display: block;"> <a href="tel:555" class="number">555</a></div> </div> Using the following jQuery (function($) { $("button#call-phone-middle").click(function() { $(this).hide(); $("div.call-number-middle").show(); }); })(jQuery); This works great. But I also wish