Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
804 views
in Q2A Core by

I am trying to add Registration event on Google Analytics with following code,

Page: qa-page-register.php

Line number: 174 to 179

'buttons' => array(
'register' => array(
'tags' => 'onClick='."ga('send', {'hitType': 'event','eventCategory': 'Registration','eventAction': 'Direct','eventLabel': 'started'});",
'label' => qa_lang_html('users/register_button'),
),
 
I have tried with multiple attempt such as ,
 
'tags' => "onClick=ga('send', {'hitType': 'event','eventCategory': 'Registration','eventAction': 'Direct','eventLabel': 'start'});",
 
 
It seems that, there is something I am missing, I want to send registration event to Google analytics. 
Your help would be appriciated. Thanks
 
 
Q2A version: 1.6

1 Answer

0 votes
by
I would recommend you follow this procedure .

http://stackoverflow.com/questions/23760595/google-analytics-send-event-callback-function

 

Hope it will work for you .
...