Using Google Analytics on K2 site/forms?


Userlevel 3
Badge +16

Hi all,

 

Anyone know if you can use Google Analytics with K2?

This old article vaguely mentions it: https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Google-Analytics-on-K2-based-web-site/td-p/90310

 

1) If editing the forms.aspx to cover all forms, what does the actually code format look like you add before the </body> tag?

 

2) If doing it on a form by form basis, what is the structure of the Data Label and what would the Google script look like?

 

I have a keen eye for stats and K2 usage, so looking at ways to achieve this with minimum fuss?

There is another way i could do this using K2. but i would prefer integrating with Google Analytics and let it do all the work

 

Any help/advise appreciated


3 replies

Hello,


 


I believe Google Analytics has a REST API and if so, K2 should be able to integrate with it via the REST Service Broker. 

Hi  @Sharpharp1 


 


I found the following blog article that may help.


 


Enabling Google Analytics in a K2 SmartForm


https://www.velocity-it.com/enabling-google-analytics-in-a-k2-smartform/


 


Regards


HulisaniN

Userlevel 3
Badge +16

Hi,

 

We weren't allowed to use Google Analytics for this due to data protection, so i created a localised solution instead using K2 to log visits and then using SRSS to report on it.

 

Thanks

Reply