Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 3 [4]   Go Down

Author Topic: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x  (Read 44264 times)

0 Members and 1 Guest are viewing this topic.

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #60 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
Logged

katip2000

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 11
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #61 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
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #62 on: June 07, 2012, 10:59:12 PM »

Please post a link to your gallery as required by board rules.
Logged

Charlie-brm

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #63 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
Logged

Prozac

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #64 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.
Logged

Charlie-brm

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #65 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
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1325
  • Fishing relaxes me.
    • Bailey Family Co.
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #66 on: August 14, 2012, 12:17:33 AM »

TYPE has been deprecated.
Updated original post with new version.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #67 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).
Logged

Johnfromhere

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #68 on: December 12, 2012, 07: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
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #69 on: December 14, 2012, 06: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?
Logged

Johnfromhere

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #70 on: December 14, 2012, 07: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.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #71 on: December 18, 2012, 02: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.
Logged

taucher0815

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • Imagedatabase
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #72 on: December 26, 2012, 02: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

Thanks
Sven
Logged

Johnfromhere

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #73 on: December 26, 2012, 04: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.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #74 on: December 30, 2012, 07: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.
Logged

pols1337

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 240
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #75 on: March 02, 2013, 10:38:20 PM »

This is awesome, thanks!
Logged

pols1337

  • Coppermine frequent poster
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 240
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #76 on: March 09, 2013, 06:29:54 AM »

Can you add support for Bing - Webmaster Tools?

http://www.bing.com/toolbox/webmaster
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #77 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.
Logged

papukaija

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #78 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.
Logged

Dankriss

  • Coppermine regular visitor
  • **
  • Country: gb
  • Offline Offline
  • Gender: Female
  • Posts: 75
    • SciFiKriss' Ramblings
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #79 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 :)
Logged
Good with HTML and CSS but no good with script... so please bear with me.. :)
Pages: 1 2 3 [4]   Go Up
 

Page created in 0.091 seconds with 20 queries.