vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Google Analytics Registration Goal Plugin (https://vborg.vbsupport.ru/showthread.php?t=140381)

Jacqueline 02-24-2007 10:00 PM

Google Analytics Registration Goal Plugin
 
Google Analytics Registration Goal Plugin
This plugin adds unique page names to the steps of the registration process so you can track registration as a Goal utilizing Google Analytics.

History
Feb 24, 2007
-- v2.0 Updated for vBulletin 3.6x.

Jan 29, 2006
-- v1.0.1 Beta 2 Release. Removes duplicate goal URL and updates step counts.

Jan 28, 2006
-- v1.0.1 Beta 1 Release. Adds modifications for COPPA and Deny registration for users under 13

Nov 27, 2005
-- Initial Beta Release

Requirements
You must have a Google Analytics account

Known Limitations
This does not work if you have turned on URL rewrites via .htaccess with programs such as vBSEO and subdreamer. VBSEO users can click here for instructions.

If you use this plugin, click Mark as Installed :)

Jacqueline 02-24-2007 11:40 PM

FAQ

I installed the script yesterday and I cannot see any statistics
Stats can take a few days before they start showing up at google.

I do not see the funnel_register in the address bar. Is the mod working?
This mod does not change the URL in your address bar. To verify the code is working, view your source and search for funnel_register

My forum is in a subdirectory such as http://www.example.com/forums. Do I need to change the URL to include the forums subdirectory?
No. You should not change the URL if your forum is in a subdirectory. Google's instructions are to have the code show it coming off the root of your domain.

I installed the 3.5 version of this previously. Do I need to upgrade?
It is not required. The 3.5 version runs fine on 3.6. If you want the code formatted for full 3.6 compatibility, then you should upgrade.

StarBuG 02-25-2007 08:30 AM

Thanks

I was waiting for this.

works like a charm

/me clicks installed

projectego 02-25-2007 09:36 AM

Nice idea! Thanks a lot, Jacqueline! ;)

Jacqueline 02-26-2007 12:57 AM

Thanks! I learned a lot from this by watching where I was losing people in registration and made some adjustments that increased my registrations.

furst 05-13-2007 10:52 AM

Could you tell me what the proper configuration would be for me considering that I have the quick registration mod installed?

Jacqueline 05-13-2007 11:13 AM

Hi, furst. I do not have that mod installed. I use the registration hooks that are built into vbulletin, if those hooks are still loading with quick register, you can use them. You can ask the creator of quick register, but there's a quicker way. Once you have both products installed, register an account on your site. View the source on each page of the registration and look for funnel_register. Note the URL associated with the funnel_register for each page, and once you've completed registering you will have your full goal path. If funnel_register does not show up on some of your pages, then those quick register pages are incompatible.

furst 05-13-2007 12:30 PM

Alright, thanks Jacqueline.

dotJoel 06-21-2007 01:49 PM

Google asks me to install the Analytics code before the last </body> tag. I followed google's instructions, will that affect this mod ?

Regards,

Joel

RetroDreams 06-24-2007 01:17 PM

Any idea on why I can't seem to get this to work?

I have my Analytics code in, I'm seeing the funnel process in the head area but nothing is registering? Anything I may be missing?

dotJoel 06-26-2007 01:10 AM

Same issue here. After days of stat collecting still no goals registering.

Regards,

Joel

RetroDreams 07-01-2007 04:16 AM

Mine finally started registering after I removed the code from my header include template, saved it, then went back in and re-added the code.

Must have been some cache thing or something. Weird, but I'll take it.

kollam003 07-02-2007 06:09 AM

i have installed it will tell the result after the results

Spinball 07-04-2007 08:58 AM

Nice to see a hack for Google Analytics.
However, Google instructs us to put the analytics script before the
HTML Code:

</body>
tag.
Shouldn't it therefore go at the bottom of the footer template?

Also for people having put it there for all their pages (and who need account email verification) , won't adding a goal with the 'head matched' url of do the job for account activations?

Jacqueline 01-28-2008 08:40 AM

In one place Google says to put it before the body tag. In another it says to put it where the instructions state. In reality, it will work anywhere on the page. For SEO purposes, it is better at the bottom; however, a lot of people had problems with other scripts running first, and putting it before other scripts solved the problems. Having said that, sure, try it just before the closing body tag. If that doesn't work, move it up to the header.

ThorstenA 02-06-2008 06:15 AM

Here is a suggestion for vbulletin 3.7 integration.

I have done google analytics code to template ad_footer_end as let analytics code being last in html code suggested from google analytics. So I'd suggest for porting this mod to 3.7 to let this mod add google funnel code not to headinclude but to ad_footer_end template. I'd be happy if you like this idea. Thank you very much!

Jacqueline 02-07-2008 08:39 AM

Thank you. Google states it can be in either place; it just depends on which help screen you are reading at the time. Some people have had trouble putting it at the end due to other scripts preventing it from running.

ThorstenA 02-07-2008 09:27 PM

Thanks for your feedback. Your product works great on my forum.

Gersfan 02-07-2008 10:38 PM

Looooks very good guys but I'm sorry I'm a little lost on what it does or is? I've never heard of Google Analytics before?

todd222222 03-26-2008 07:55 PM

Will this work with the "new form" of code?

http://www.google.com/support/google...n&answer=69588

I'm looks like the name of the script has change therefore I'm assuming there would be a problem.

Thanks
Todd

Jacqueline 03-28-2008 12:12 AM

Quote:

Originally Posted by Gersfan (Post 1438531)
Looooks very good guys but I'm sorry I'm a little lost on what it does or is? I've never heard of Google Analytics before?

Sorry for the late response. I didn't see the notification when you posted. Google analytics lets you keep some very good statistics on your web site. It is a free service offered by Google. The software used to be quite expensive. It was called Urchin. For more information, go to http://www.google.com/analytics


Quote:

Originally Posted by todd222222 (Post 1475310)
Will this work with the "new form" of code?

http://www.google.com/support/google...n&answer=69588

I'm looks like the name of the script has change therefore I'm assuming there would be a problem.

Thanks
Todd

Todd,
I don't believe there will be a problem with Google's changes. I will be updating this once vBulletin 3.7 goes gold and will update the instructions with Google's new for of code too.

todd222222 03-28-2008 05:55 PM

It seems like it's not working with the new code as I'm not seeing the registration from yesterday.....I wish I understood how this stuff worked. :)

Jacqueline 03-28-2008 11:08 PM

Thanks, todd. I'll take a look at it this weekend.

valdet 09-13-2008 10:27 AM

I saw a question asked on vbseo.com, which noone cared to answer.

http://www.vbseo.com/f30/how-setting...tml#post166261
Quote:

Will this method work if I use the Quick Register plugin, instead of the default vBulletin registration form?

Thanks
Any ideas, before I start using Quick Register.

Nubai 11-24-2008 11:15 PM

Hi,

Is this going to be updated for 3.7.x? Or is there another way to track registrations as goals? I'm new to VB and analytics so sorry for the daft question.

Mark

xlguy 10-16-2009 11:14 AM

Anyone know if this plugin still works with vB3.8.x? Thanks :)

Update The code needs to be edited as the way to manually track goals on the same URL has changed, see:
http://www.google.com/support/google...n&answer=55576

Just need to edit the code in the plugin before you import it, following instructions above.

Will test now and let you know if works.

kmike 10-04-2010 08:11 AM

For those who are using the new Google Analytics async tracking code, attached is the updated product file.

The async code that you put in the HEAD page section looks like this:
Code:

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-xxx-xx']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>



All times are GMT. The time now is 11:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01134 seconds
  • Memory Usage 1,798KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (27)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete