Skip to Content Skip to Menu

Google Analytics and Community Builder - registration as a goal

  • edwardpeck
  • edwardpeck
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 1
  • Add-ons
10 years 2 weeks ago #251404 by edwardpeck
I am trying to set up google analytics to track registration as a goal

The goal destination /index.php/component/comprofiler/ does not work

Do you know how this might be done?

My searches of this question in the forum show you advice to search for a CB Plugin. I have not been able to find one - neither could the person who asked the same question (although that was some years ago).

Does a plugin exist? Can you point me to it, please if it does?

Is this something that people have solved by other means? There was another post about some post-registration action which you could somehow use. I didn't understand it. If this is how it gets done, could you guide me how to do it? Alternatively is this something I could pay to get done on my site?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #251448 by krileon
As far as I'm ware people have just put the tracking Javascript into the registration complete message by editing its language string. Using CB Auto Actions could also work to add the Javascript or executing Google API for it. The only Google Analytics plugin we have is for CBSubs to track purchases/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • edwardpeck
  • edwardpeck
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 1
  • Add-ons
10 years 1 week ago - 10 years 1 week ago #251577 by edwardpeck
The tracking code appears actually to be there, although I can only see it using "Inspect element". I can't "view page source" for some reason on this page.

The looks like this:

<script>
(function(i,s,o,g,r,a,m){i=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'MY TRACKING ID', 'auto');
ga('send', 'pageview');

</script>

Google suggest the following troubleshoots. support.google.com/analytics/answer/1009683

They suggest a variety of instances in which the code might not work. For example:

In some cases the ga variable name might already be used by an existing object on your page. To avoid overriding your existing object, you can rename the ga function, for example to __gaTracker.

Can you think of any reason why it would not work on this page?

I lack the knowledge to be able to look into this more deeply. Can someone at your end have a look and solve it for me?
Last edit: 10 years 1 week ago by edwardpeck.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 1 week ago #251619 by krileon

Can you think of any reason why it would not work on this page?

No idea, if it's loaded and called it should track fine, but I've no experience with Google tracking.

I lack the knowledge to be able to look into this more deeply. Can someone at your end have a look and solve it for me?

No, we don't do this sort of thing sorry. You should contact a contract developer if you need programming and integration help. We've no official Google tracking integration except for CBSubs to track sales.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum