forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: papukaija on May 30, 2010, 12:01:40 am

Title: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on May 30, 2010, 12:01:40 am
This plugin adds a tracking code to every page if the user isn't logged in as admin. An additional cookie based exclusion is also available after the installation of this plugin. Users may also opt-out from tracking if they enable Do Not Track (http://donottrack.us) from their browser's settings. This plugin replaces my Google Analytics plugin (http://forum.coppermine-gallery.net/index.php/topic,61232.0.html). Please note that some translations are incomplete.

Features:

Supported trackers:

About the config screen's Extra setting:

This setting is used to give the tracker a second setting. Depending on the tracker, this setting is mandatory for the tracker to work. If completing the field for a specific tracker is necessary, then the field is pre-filled with some text (ID-SITE, for example). Currently this field is only used for site IDs.

Google Analytics users:
Please make sure that you're using the Universal Analytics tracking method from Google Analytics's settings before using this plugin.

Credits:

Translators:
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on June 26, 2010, 04:45:44 pm
A new version of this plugin has been added to the initial post.

Changes in version 2.0:

- Added support for Open Web Analytics (OWA), BBClone and CrawlTrack (please test if they actually work)
- Added explanation for config screen's Extra setting to README.txt
- Updated Google Analytics's tracker code (removed pageTracker._initData(); which is now only usefull with frame sites, see here (http://www.google.com/support/forum/p/Google+Analytics/thread?tid=6ae93fabba94b5fd&hl=en) for more information)
- DB schema: Changed the varchar for tracker_extra to 50


Upgrading from 2.0beta1 (important): Due to the change in db's schema, you must completely uninstall (including settings) this plugin before installing a new version of it. The change was necessary to add support for OWA's longer site IDs.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on August 23, 2010, 11:15:44 pm
A new version of this plugin has been added to the initial post.

Changes in version 2.1:
- Moved README.txt and TODO.txt to /docs/english.html
- Updated few links to use /docs/<user's_lang>.html through greybox
- Changed getRaw to getAlpha in cookie's reading
- This plugin uses now a language fallback
- Added form token to clenup's form
- Added 'success' css class to cookie sender's msg_box() in cookie.php
- inspekt inside external_tracker_footer() is loaded with $strict = FALSE; to use php based trackers but the superglobals are removed at functions's end (@devs: I'll change this method to something else if it isn't safe)
- Fixed redirecting url in cookie.php
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on September 05, 2010, 01:48:23 pm
A new version of this plugin has been added to the initial post.

Changes in version 2.2
- Moved from inspekt's $strict = FALSE to _source as the $strict has no effect inside a function (but these superglobals are of course deleted immediately after they're not needed)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: picturevirginia on September 06, 2010, 02:10:41 pm
I'm using the plugin for G analytics. Works great so far, thanks.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Hache on September 16, 2010, 02:27:42 pm
Spansih Translation for GA plugin cpg 1.4.xx
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on September 16, 2010, 06:14:38 pm
Spansih Translation for GA plugin cpg 1.4.xx
Wrong sub-board and topic ...
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: kernelcraft on October 21, 2010, 08:23:43 pm
Hi.

First of all. Thanks for the nice plugin :)

Do you have source repository available somewhere?
I want to add some Russian tracker and probably Russian translation and it would be simpler to send patches against the source repo...

Thanks.

Alexey
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on October 21, 2010, 11:29:52 pm
Do you have source repository available somewhere?
No, a local lamp is enough for me and a dev hasn't yet added this plugin to the official svn.

I want to add some Russian tracker and probably Russian translation and it would be simpler to send patches against the source repo...
Feel free to attach your translations to this topic. It's quite easy to add new trackers to my plugin, so just post the required details to this topic (please use either attachements or the code/quote formatting) and I'll add them to my plugin. The required details for a tracker are url to tracker's doc, default setting value(es) for tracking Id/site IDs, etc and some explanation for those settings. However, I won't have access to main computer until the third week of November, so you'll need to wait a while before your contribution will be included in my plugin.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Αndré on October 22, 2010, 09:26:45 am
a dev hasn't yet added this plugin to the official svn
Added version 2.2 (package from initial post) to svn repository in revision 7984 (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/external_tracker/).
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on October 22, 2010, 05:43:11 pm
Added version 2.2 (package from initial post) to svn repository in revision 7984 (http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/external_tracker/).
Great. Thank you.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on January 15, 2011, 10:58:25 pm
A new version of this plugin has been added to the initial post.

Changes in version 2.3:
- Added support for Yahoo! Web Analytics
- Google Analytics and Piwik now use the new asynchronous javascript tracker

You must completely uninstall (including the deletion of settings) the older version due to a database change or alternatively use phpmyadmin to add "async" field to this plugin's table (CPG_plugin_external_tracker where CPG is the prefix set by the gallery's installer) with enum (YES/NO) and 'NOT NULL', NO being the default value and then assign YES for Google Anylytics and Piwik and NO for other trackers.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on January 27, 2011, 03:51:37 pm
Greetings,
I recently installed another FB mod that had a conflict originally with your external tracker plugin causing its meta data not to show (the FB plugin)
I moved your plugin to a higher position of execution order and it solved the problem.
However, now I'm curious if your plugin is working or not.  I don't see anything in the header for any google scripts, nor do I see any when I have just this plugin installed. 
Is there a way to verify its working outside checking G. Analytics?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on January 27, 2011, 08:03:38 pm
I see the GA script in the header part of your gallery located at http://teknosounds.com/tspics/ (please remember board rules). The plugin doesn't verify the values set in the plugin's configuration (with the exception of security checks by inspekt) , so you can enable any js based tracker with the default values and look at the html source code after you have saved the changes to the settings. Enabling php based trackers with default values may lead to error messages since php's include function will fail.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on January 31, 2011, 06:48:55 pm
Attached v.2.4 of this plugin to the initial post. This version fixes the reported compatibility issue (http://forum.coppermine-gallery.net/index.php/topic,62561.msg343610.html#msg343610) with Image Scroll and other plugins altering the head part of the html code.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on February 01, 2011, 04:39:13 am
Got an error, tracking it down now:
Code: [Select]
Parse error: syntax error, unexpected T_GLOBAL, expecting '{' in /var/www/html/teknosounds.com/tspics/plugins/external_tracker/codebase.php on line 32
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on February 01, 2011, 05:08:47 am
Sure enough the function on line 32 is missing an opening curly brace.  Fixed and working like a charm now.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on February 01, 2011, 01:01:37 pm
Got an error, tracking it down now:
Code: [Select]
Parse error: syntax error, unexpected T_GLOBAL, expecting '{' in /var/www/html/teknosounds.com/tspics/plugins/external_tracker/codebase.php on line 32
Fixed in v.2.5, attached it to initial post.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: François Keller on February 26, 2011, 11:07:21 am
French translation (by FBleu) added in the pack in the initial post
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on February 26, 2011, 05:28:50 pm
French translation (by FBleu) added in the pack in the initial post
Thank you for your contribution. Unfortunately the svn version of this plugin is a bit outdated, so I copied the new French files to my local copy and updated the initial package. LP has always the latest version of this plugin, more details in the initial post. I've also added FBleu to the translator part of the docs (both English and French).
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: François Keller on February 26, 2011, 06:39:11 pm
ok, thank's, do you want i update the svn version of this plugin with your new ?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on February 26, 2011, 09:32:03 pm
Yes, that can't be a bad idea.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 03, 2011, 08:54:21 pm
I installed the plugin and read the manual but there is no such thing as 'config manager' in Plugin Manager.
How do I configure it to work with Google Analytics?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 03, 2011, 09:10:21 pm
The link isn't named "config manager" but just settings. Please post a link to your site if you need further help.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 04, 2011, 12:11:52 am
There is no settings, neither. This is all I can see: http://img703.imageshack.us/i/56184994.jpg/
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 04, 2011, 04:40:35 pm
That's not what I asked for. I can't reproduce your issue with the given details. Please follow board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) or have a nice debugging weekend.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 04, 2011, 05:40:26 pm
You can see my gallery at konrad.321.cn.
I did not post the link because to see plugin manager, you'd need to login as admin. Is this what you need?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 04, 2011, 06:19:54 pm
Does it work with default themes? I uploaded igames theme to my site and still can't reproduce your issue. Does versionchek.php confirm that you're running latest CPG? I'm asking this because the link text is taken from CPG's own language files. You can also try to download the plugin again and reupload configuration.php. Btw, I checked from CPG's lang files that the correct link text for English is actually just "Config".
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 04, 2011, 08:21:51 pm
I tried other thames but it is the same thing - no 'Config'. Where should it be located?
I updated cpg few days ago from 1.4 to 1.5.12. I never used plugins before. Everything else seems to be working just fine and version check does not signal any errors. I also reuploaded configuration.php. No luck.

When I was installing the plugin, regular html install didn't work so I had to upload unpacked folder. Then I had to change its name to 'external_tracker' because 'cpg1.5.x_plugin_external_tracker_v.2.5' would not install in plugin manager.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 05, 2011, 12:57:45 am
This is getting strange. The link should be between the cookie link and the support link. Until this issue is solved, you can access the config page by going to "index.php?file=external_tracker/plugin_config". Can you try with an other browser? Can you see the link in the html code (the fastest way to locate the proper section of the html is to search for "index.php?file=external_tracker/cookie") ? If yes, does the link appear if you disable all styles,for example in Firefox it's in: Show>Page's style and then "no styles"? Can you see the config link in the admin menu as both links uses the same text from cpg's language files?


Then I had to change its name to 'external_tracker' because 'cpg1.5.x_plugin_external_tracker_v.2.5' would not install in plugin manager.
Sorry, I forgot to rename the folder name inside the zip file. It's now fixed.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 05, 2011, 09:18:40 am
My main browser is Opera, but I tried Chrome and it's the same thing.

The only instance I find in source is this;
Code: [Select]
<td class="tableb" width="20%" valign="top">Extra:</td>
<td class="tableb" valign="top"><a href="index.php?file=external_tracker/cookie" class="admin_menu" title="Install or update the cookie">Install or update the cookie</a>
<a href="index.php?file=external_tracker/plugin_config" class="admin_menu" title=""></a>
<a href="http://forum.coppermine-gallery.net/index.php/topic,65174.0.html" rel="external" class="admin_menu" title="Support thread"> Support thread</a></td>

Yes, I can see Config manu at all times in Admin area. That is, if you mean the menu bar you can see onthe screen I posted earlier.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 05, 2011, 04:03:40 pm
Code: [Select]
<td class="tableb" width="20%" valign="top">Extra:</td>
<a href="index.php?file=external_tracker/plugin_config" class="admin_menu" title=""></a>
</td>
So for some reason php fails to parse
Code: [Select]
title="{$lang_gallery_admin_menu['admin_lnk']}">{$config_icon}{$lang_gallery_admin_menu['admin_lnk']}</a> (the config_icon refers to cpg_fetch_icon('config', 1);)

Yes, I can see Config manu at all times in Admin area. That is, if you mean the menu bar you can see onthe screen I posted earlier.
Yes, that's what I meant. The good news is that this isn't a css issue. The bad news is that I 've no idea about this bug's root cause: your admin menu is able to get the link text and I checked that the config icon is found in your server (the script doesn't output the html for the icon if that isn't found on the server). Do you get any php errors either in your gallery's logs or your server's logs? Have you installed other plugins? It's unlikely that the issue would come from another plugin but something somewhere is breaking those variables. Does at least the direct access to index.php?file=external_tracker/plugin_config work?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 06, 2011, 01:40:16 am
Yes, the direct access works and I am waiting 24h before GA starts recording stats for my gallery.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 07, 2011, 09:22:28 am
Well, it has been three days since I configured the plugin and Google Analytics panel is still saying 'Tracking Unknown'.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 07, 2011, 10:40:43 pm
Well, it has been three days since I configured the plugin and Google Analytics panel is still saying 'Tracking Unknown'.
That's completely normal since your gallery's html source doesn't show GA's tracking code. Please try to answer my questions in reply 31.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 08, 2011, 09:38:56 am
I have no other plugins installed and I am not sure how to check the logs.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 08, 2011, 12:22:18 pm
To be more precise, I don't know what to look for in the logs.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 08, 2011, 12:42:34 pm
Forgot to activate the plugin...  ::)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 08, 2011, 01:33:13 pm
I have no other plugins installed
In that case the issue seems to be with your server software but I really can't see why php fails to parse the parameters in the config link.

To be more precise, I don't know what to look for in the logs.
Try to look for any error messages (php notices,syntax errors,etc) which come from any file in /plugins/external_tracker/. Some of the error messages may be visible in debug mode (http://documentation.coppermine-gallery.net/en/configuration.htm#admin_misc) (you can enable it from your gallery's settings). Please don't post the whole output but just any errors from my plugin and php's version. The location of your server's log vary but you can access them with Cpanel, Vistapanel,etc or ask for them from your hosting company.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Lockheed on March 09, 2011, 11:48:08 am
GA is working but I added Piwik to my gallery to get IP addresses of visitors. However, I am not sure what should I type in the 'Tracker' field for Piwik in plugin config. I tried page address but it does not seem to be working.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 09, 2011, 07:51:12 pm
However, I am not sure what should I type in the 'Tracker' field for Piwik in plugin config. I tried page address but it does not seem to be working.
The field should be pre-filled with "domain.tld/path-to-piwik/". It should work as long as you don't add http(s):// since it's added by the javascript and remember to add the trailing slash.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Forgottenmem on March 18, 2011, 03:57:49 pm
For 2 days now, google analytic shows, its never taken this long before.
Quote
Waiting for Data
Analytics has been successfully installed and data is being gathered now.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 18, 2011, 09:11:55 pm
Please follow board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) or have a nice debugging weekend.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Forgottenmem on March 18, 2011, 10:50:39 pm


Problem occurring here cosplay4.com (http://cosplay4.com)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 19, 2011, 07:04:09 pm
That's completely normal since your gallery's html source doesn't show GA's tracking code.

Please double-check that you've enabled and configured this plugin. Are you using the latest release (currently v.2.5) of this plugin? Does the code appear if you disable all other plugins and/or by using an unmodified theme?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Forgottenmem on March 19, 2011, 08:20:12 pm
Plugin Enabled.
Plugin Configured.
v2.5 Yes.
Does the code appear, with other disables. No

I don't have to put anything in extra setting for Google Analytics do I?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 20, 2011, 05:09:12 pm
Does the code appear, with other disables. No

I don't have to put anything in extra setting for Google Analytics do I?
Just to be 100% sure, you need to make those tests when you are not logged in as admin (and also remember to remove the cookie if you installed it). Did you also try with a default theme without any modifications (including anycontent.php or other core file)? You don't need to put anything in the extra setting for Google Analytics.

What is your PHP version? If it's v.4, can you try with v.5? Is your gallery an upgrade from cpg 1.4? Do you get any PHP errors either in your gallery's logs (available from viewlog.php) or your server's logs (from cPanel, VistaPanel,etc)?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Forgottenmem on March 20, 2011, 06:22:42 pm
Just to be 100% sure, you need to make those tests when you are not logged in as admin (and also remember to remove the cookie if you installed it). Did you also try with a default theme without any modifications (including anycontent.php or other core file)? You don't need to put anything in the extra setting for Google Analytics.

What is your PHP version? If it's v.4, can you try with v.5? Is your gallery an upgrade from cpg 1.4? Do you get any PHP errors either in your gallery's logs (available from viewlog.php) or your server's logs (from cPanel, VistaPanel,etc)?

Thanks for the support. I'm no longer using the plugin. I have implemented the Google analytics code into one of my files that appears on all pages. Cheers.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on March 22, 2011, 05:19:35 am
papukaija, how does this show up in the Page Source? I searched my source for anything google and analytics and nothing shows up, though its showing up in GA, so obviously its working...  just want to really verify it is all, in case I need to ensure its working after adding another plugin.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 22, 2011, 09:26:04 pm
Google Analytics (and Piwik) should be in the header part of the code. If you don't see it, try changing the order of your plugins in plugin manager.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on March 23, 2011, 06:25:44 am
Right...but like I said, its not showing up at all...  only two plugins I'm running right now is yours and the Facebook Comments/Like/etc plugin.  Tried changing order on both but no luck.

But its odd since Analyitics is pulling data...so its working...just not sure why its not showing up in the page source. Hmm.
(gallery link in my sig)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on March 23, 2011, 12:14:39 pm
Do you mean http://teknosounds.com/tspics/? That site is showing the code in the header part of the html source. Please try emptying your cache. Remember that the code won't show if you're logged in as admin or if you have enabled the cookie.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: TeknoSounds on March 24, 2011, 03:24:33 am
Do you mean http://teknosounds.com/tspics/? That site is showing the code in the header part of the html source. Please try emptying your cache. Remember that the code won't show if you're logged in as admin or if you have enabled the cookie.

Ahhh that was my issue (admin), thanks :)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on April 14, 2011, 04:49:28 pm
I added v.2.6 of this plugin to the initial post. Piwik's code has been updated to add support for tracking downloads and the documentation is updated too. An update isn't necessary if you haven't allowed your visitors to download albums while using Piwik.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: fabkow on May 17, 2011, 09:13:02 pm
Nice plugin, I translated english lang to polish lang. In attachment is polish lang for External Tracker.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on June 17, 2011, 10:23:02 pm
@fabkov: Thank you for your contribution - I've added it to the plugin in v.2.7. And sorry for the late reply but I've been very busy for the last few weeks.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: cyberdyne2 on January 18, 2012, 11:12:07 pm
Not sure this is working with v.1.5.16.
I don't even see a 'config link in plugin manager'.


Any help appreciated.

Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on January 18, 2012, 11:35:09 pm
@cyberdyne2: Please post a link to your gallery (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) as required by board rules.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: cyberdyne2 on January 18, 2012, 11:42:35 pm
My apologies. I was looking for general help regarding the plugin supporting the latest version of Coppermine, not specific help regarding my forum.
However, you are correct, my gallery is at http://www. londonallstars.co.uk/gallery

Thank you
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on January 19, 2012, 08:22:42 pm
Please make sure that you've installed the latest version of this plugin and that you've uploaded all the files in the package to your server. Do you get any php errors in cpg/Apache/cPanel's logs? You should upgrade your gallery asap.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on April 10, 2012, 08:59:04 pm
A new version of this plugin has been added to the initial post.

Changes in version 2.8:
- Added support for the Do Not Track header
- Revised documentation
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: katip2000 on June 07, 2012, 10:14:45 pm
hello,

when i wil install. i get next error.

Critical error
There was an error while processing a database query
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on June 07, 2012, 10:59:12 pm
Please post a link to your gallery (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616) as required by board rules.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Charlie-brm on August 13, 2012, 04:16:57 am
Error on installing version 2.8 to CPG 1.5.18
***************
While executing query '
CREATE TABLE IF NOT EXISTS `cpg1410_plugin_external_tracker` (
  service_id int(11) NOT NULL auto_increment,
  service_active enum('YES','NO') NOT NULL default 'NO',
  service_name_short varchar(10) NOT NULL default '',
  service_name_full varchar(25) NOT NULL default '',
  tracker varchar(30) NOT NULL default '',
  tracker_extra varchar(50) DEFAULT NULL,
  help_url varchar(255) NOT NULL default '',
  async enum('YES','NO') NOT NULL default 'NO',
  PRIMARY KEY  (service_id),
  UNIQUE KEY service_name_full (service_name_full),
  UNIQUE KEY help_url (help_url)
) TYPE=MyISAM COMMENT='Used to store settings for External tracker plugin.'' in plugins\external_tracker\codebase.php on line 96

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM COMMENT='Used to store settings for External tracker plugin.'' at line 13

****************

Gallery URL - http://www.luresandtours.com/coppermine/index.php (http://www.luresandtours.com/coppermine/index.php)
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Prozac on August 13, 2012, 11:32:04 am
 >:( Same problem here. Find the schema.sql file in cpg15x/plugins/external_tracker folder and change last line TYPE=MyISAM to ENGINE=MyISAM. Save and install the plugin. Hope this helps.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Charlie-brm on August 13, 2012, 05:46:09 pm
Thanks Prozac. (How many people can say they owe their thanks to Prozac? Clever)
That went without a hitch and for the record for others, be sure to hit the Config under External Tracker's Plugin settings. That's where you insert your own tracking choices and account ID. By default they were all turned off and had a different Google Analytics account ID entered.

Charlie
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Jeff Bailey on August 14, 2012, 12:17:33 am
TYPE has been deprecated.
Updated original post with new version.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on August 14, 2012, 07:21:41 pm
Thanks for the reports and the fix. I was actually preparing the fixed zip archive when I realised that Jeff had already released a fix for this issue... Anyway, I reuploaded the plugin with updated changelog, configuration.php and the deletion of the whole MySQL engine's reference (to follow the style used in cpg's /sql/schema.sql).
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Johnfromhere on December 12, 2012, 06:11:18 pm
I am also having problems with the External Tracker (version 2.9).

I installed it using the Plugin installer and it appeared to install OK.

I could not find any Config button in the Coppermine Plugin Manager or anywhere else.

In the “External tracker (external_tracker): v2.9” in Coppermine Plugin Manager the “Support Thread” button returns “The requested URL /index.html/topic,65174.0.html was not found on this server.”

I can, however get to the External Tracker Config by going to "index.php?file=external_tracker/plugin_config" as suggested by papukaija so can probably get it up and running OK but thought I should post this on the board for others.

The Google Analytics ‘Help’ link on the “External tracker by papukaija - Plugin Manager” doesn’t appear to work and returns “We are sorry but the information that you have requested cannot be found. Please try searching or browsing the Help Centre.”

I have temporarily uninstalled the mod until I have a little more time to get it up and running.

URL: www.jjsphotos.co.uk

Cheers.

John
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on December 14, 2012, 05:24:21 pm
In the “External tracker (external_tracker): v2.9” in Coppermine Plugin Manager the “Support Thread” button returns “The requested URL /index.html/topic,65174.0.html was not found on this server.”
I guess you're using the SEF plugin. Just change the index.html to index.php in your browser's address bar and it should work. The fix would need to go to that plugin, not my plugin.

I'll try to look at the other issues over the next few days. Can you tell me if you get any php errors in Coppermine/Apache/cPanel's logs?
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Johnfromhere on December 14, 2012, 06:15:15 pm
Thanks for the reply.

Quote
I guess you're using the SEF plugin. Just change the index.html to index.php in your browser's address bar and it should work. The fix would need to go to that plugin, not my plugin.

Yes, I am using the SEF plugin but I'm not sure what that has to do with it  :-[.

Quote
Can you tell me if you get any php errors in Coppermine/Apache/cPanel's logs?

As far as I can see, there are no errors in any of the logs.

Having configured it using "index.php?file=external_tracker/plugin_config" as suggested, it appears to be working OK and now all I have to do is to learn how to use Google Analytics properly.

Many thanks for the plugin, papukaija.

Cheers.

John.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on December 18, 2012, 01:06:31 am
Yes, I am using the SEF plugin but I'm not sure what that has to do with it  :-[.
That plugin replaces all references of index.php to index.html but unfortunately it does that for external links too.

I could not find any Config button in the Coppermine Plugin Manager or anywhere else.
The config button should be between the cookie install and support thread buttons. Are you using the default theme? If not, can you try it? Can you also try to search for the codes below from the plugin manager's html source?

Code: [Select]
file=external_tracker/plugin_config" class="admin_menu"
Code: [Select]
<img src="images/icons/config.png
The Google Analytics ‘Help’ link on the “External tracker by papukaija - Plugin Manager” doesn’t appear to work and returns “We are sorry but the information that you have requested cannot be found. Please try searching or browsing the Help Centre.”
Thanks for reporting. Google has changed the URL for that page, I've updated the link for the next release.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: taucher0815 on December 26, 2012, 01:14:45 pm
Hi!
First of all: Thanks for the plugin!

Any plans to also implement the (optional) anonymization of tracked IP's for Google Analytics?

https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApi_gat?hl=de#_gat._anonymizeIp (https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApi_gat?hl=de#_gat._anonymizeIp)

Thanks
Sven
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Johnfromhere on December 26, 2012, 03:52:02 pm
Hi papukaija,

I was not using the default theme (curve), I was using 'dark_velvet' so I reverted to the default theme for the following tests.

Quote
The config button should be between the cookie install and support thread buttons. Are you using the default theme? If not, can you try it? Can you also try to search for the codes below from the plugin manager's html source?

The config button is not there. 

I am not sure what file you meant as the 'plugin manager's html source' but I have searched for the two sets of code in "external_tracker/configuration.php" and it found the first extract
Quote
file=external_tracker/plugin_config" class="admin_menu"
but not the
Quote
<img src="images/icons/config.png

Any further advice/guidance gratefully received.

Many thanks.

John.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on December 30, 2012, 06:05:32 pm
I am not sure what file you meant as the 'plugin manager's html source'
Sorry if I wasn't clear. Go the plugin manager (pluginmgr.php) in your browser and then open the page source (Ctrl+U in Firefox).You should be able to find at least the first code.

Could you also try if the attached file (unzip and replace the file included in the plugin) solves the issue for you?

Any plans to also implement the (optional) anonymization of tracked IP's for Google Analytics?
I guess I could add this to the next release, as non-technical users are unlikely to be aware of the Do Not Track function.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: pols1337 on March 02, 2013, 09:38:20 pm
This is awesome, thanks!
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: pols1337 on March 09, 2013, 05:29:54 am
Can you add support for Bing - Webmaster Tools?

http://www.bing.com/toolbox/webmaster
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on April 10, 2013, 10:58:42 am
Sorry for very late reply but I didn't get an email notification about your message, probably because I didn't login when I read your previous message. I guess I can add both Bing and Google Webmaster Tools to this plugin even if they aren't full analytics tools.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: papukaija on August 19, 2015, 08:31:31 pm
Thanks guys again for your feedback and feature suggestions - they've been included to this plugin's v. 2.10 which is attached to the initial post (sorry for the massive delay, but I haven't had time to work on this plugin until now). Please see below for the full change log.

Changes in version 2.10:
- Updated Google's Javascript to use the new Universal Analytics tracking method (with anonymisation of tracked IPs)
   Please make sure that you're using the new Universal Analytics tracking method from Google Analytics's settings before updating this plugin.
    Please see https://developers.google.com/analytics/devguides/collection/upgrade/ for more details.
- Added support for Bing Webmaster Tools and Google Search Console (previously known as Google Webmaster Tools)
- Minor adjustments to the Javascript codes for Piwik and Yahoo! Web Analytics
- Updated the help links for some trackers' docs
- Revised documentation

Please note that you'll need to completely uninstall (including settings) and then reinstall the plugin in order to use it for Bing Webmaster Tools and Google Search Console.
Title: Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
Post by: Dankriss on July 08, 2016, 05:04:15 pm
Hi


I just installed this and nothing has come up in the config screen?  Where do I config it for Google Analytics?


http://krissharmsworth.rocks/michael/index.php


Thanks in advance


Kriss :)