External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x - Page 4 External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x - Page 4
 

News:

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

Main Menu

External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x

Started by papukaija, May 30, 2010, 12:01:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

papukaija

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

katip2000

hello,

when i wil install. i get next error.

Critical error
There was an error while processing a database query

papukaija


Charlie-brm

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

Prozac

 >:( 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.

Charlie-brm

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

Jeff Bailey

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

papukaija

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).

Johnfromhere

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

papukaija

Quote from: Johnfromhere on December 12, 2012, 06:11:18 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?

Johnfromhere

Thanks for the reply.

QuoteI 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  :-[.

QuoteCan 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.

papukaija

Quote from: Johnfromhere on December 14, 2012, 06:15:15 PM
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.

Quote from: Johnfromhere on December 12, 2012, 06:11:18 PM
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?

file=external_tracker/plugin_config" class="admin_menu"
<img src="images/icons/config.png

Quote from: Johnfromhere on December 12, 2012, 06:11:18 PM
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.

taucher0815

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

Johnfromhere

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.

QuoteThe 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
Quotefile=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.

papukaija

Quote from: Johnfromhere on December 26, 2012, 03:52:02 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?

Quote from: taucher0815 on December 26, 2012, 01:14:45 PM
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.

pols1337


pols1337


papukaija

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.

papukaija

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.

Dankriss

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 :)
Good with HTML and CSS but no good with script... so please bear with me.. :)