forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: papukaija on August 16, 2009, 10:48:02 pm

Title: [Unsupported, outdated]: Google Analytics plugin for cpg1.5.x
Post by: papukaija on August 16, 2009, 10:48:02 pm
I have updated my Google Analytics (http://www.google.com/analytics/) plugin (http://forum.coppermine-gallery.net/index.php/topic,60306.0.html) to work with cpg1.5.x. The testing has been done with cpg1.5.2.

Features:
Feel free to post your translation or comments.

EDIT: This plugin is now replaced by my External tracker (http://forum.coppermine-gallery.net/index.php/topic,65174.0.html) plugin. Therefore this plugin becomes unsupported.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: Αndré on August 17, 2009, 08:59:58 am
I've attached version 1.1 to the initial post.

Changes:
- German translation added
- Assigned class 'button' to buttons
- Minor bug fixes
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on August 19, 2009, 10:00:35 pm
Thanks for your contributions.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on November 18, 2009, 02:02:39 pm
I've attached version 1.2 to the first post.

Changes:
- Bugfix for a broken html output
- Fixed typo in the Finnish language file
- Αndré, you're now added to the author list of this plugin
Title: Translation for Google Analytics
Post by: tjiepie on December 17, 2009, 06:24:27 am
I have translation Google Analytics to Dutch

Forum: (I can't post it there, thanks for move)
http://forum.coppermine-gallery.net/index.php/topic,61232.0.html

Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on December 18, 2009, 09:44:14 am
I've attached version 1.3 to the initial post.
Changes:
- Dutch translation added (contibuted by tjiepie)
- Changelog and readme files are added
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on February 20, 2010, 08:04:55 pm
I've attached version 1.4 to the initial post.

Changes:
- Added support for the new plugin installer
- Added svn headers as this plugin has been added to svn
- Added Announcement thread -links to configuration.php

This version is taken from svn, so it includes Joachim's code optimisations in codebase.php. I didn't add the svn headers to the index.html since it is empty and its purpose is to disable diroctory viewing of my plugin.

Ps. Thanks for adding my plugin to svn.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: phill104 on February 20, 2010, 08:19:09 pm
Thank you for your efforts. Any good script will be added. Coppermine is a community driven project and can only grow with support from users such as yourself. Keep up the good work.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: MisteryBrother on February 24, 2010, 05:34:32 pm
Small mistake on line 32:
$extra_info =

Find these code:

Code: [Select]
$extra_info '<a href="index.php?file=google_analytics/cookie" title="Install or update the cookie">Install or update the cookie</a><br /><a href="http://forum.coppermine-gallery.net/index.php/topic,61232.0.html" rel="external" class="admin_menu external">'.cpg_fetch_icon('announcement', 1).'Announcement thread for '.$name.' plugin</a>';
REPLACE with the code:

Code: [Select]
$extra_info = '<a href="index.php?file=google_analytics/cookie" title="Install or update the cookie">Install or update the cookie</a><br /><a href="http://forum.coppermine-gallery.net/index.php/topic,61232.0.html" rel="external" class="admin_menu external">'.cpg_fetch_icon('announcement', 1).'Announcement thread for '.$name.' plugin</a>';



Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on February 27, 2010, 11:04:57 pm
@MisteryBrother: Thanks for reporting that bug. The fixed version is attached to the initial post.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: a-m on March 04, 2010, 10:32:42 am
 :)chinese_gb
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: jmatute on May 04, 2010, 07:21:27 am
Hi,

This is the spanish translation. However the plugin information keeps showing in English in Coppermine's plugin admin page - it reads the description field  in the configuration.php file, doesn't it?.

Just in case it changes in the future:
Code: [Select]
$description='Este plugin añade el código de seguimiento de <a href="http://www.google.com/analytics/" rel="external" class="external">Google Analytics</a>\ a cada página de la galería, salvo al entrar como administrador. También se puede activar la exclusión mediante una cookie tras la instalación del plugin.';
$author='<a href="http://forum.coppermine-gallery.net/index.php?action=profile;u=56739" rel="external" class="external">papukaija</a>, v1.1 por <a href="http://forum.coppermine-gallery.net/index.php?action=profile;u=24278" rel="external" class="external">André</a>';

Regards,
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on May 05, 2010, 07:37:19 pm
This is the spanish translation. However the plugin information keeps showing in English in Coppermine's plugin admin page - it reads the description field  in the configuration.php file, doesn't it?.
The plugin information is read from configuration.php but that information is static; always in English. I may change this if needed with the coming update of my plugin (see the edit in the initial post).
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: jmatute on May 05, 2010, 11:20:49 pm
Hi,

This is the spanish translation.


Sorry, but I can't see attached the file I intended to (spanish.zip). Did I forget it, or got lost when Joachim beautyfied my post ?

Regards,
José Luis
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: Joachim Müller on May 06, 2010, 08:29:40 am
I just added the code tags to your posting. I haven't removed an attachment. How could there be translation for a plugin that doesn't feature i18n? As suggested in Geo IP Lookup - check from which country your visitors come from (http://forum.coppermine-gallery.net/index.php/topic,64820.0.html), you're welcome to add i18n for this plugin - that's dead easy, but won't help much, as this plugin doesn't have a config screen or similar - all the end user can do is install it.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: jmatute on May 06, 2010, 09:17:22 am
Spanish file attached. Please forgive my head - I'll try to swicth on 'Memory' config option next time.

Thank you,
José Luis.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: jmatute on May 10, 2010, 06:50:46 am
Hi,

I did some modifications in my personal copy of the plugin, and I don't know if they can be interesting for anybody.

Original plugin had some sentences written in the configuration.php file. I could easily translate them in my but new versions of the plugin will ruin that work. So I put them in the spanish.php and english.php files, and for the rest of languages I provide a default value. It isn't needed when all messages are translated in every language file.

Regards,
José Luis.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on May 10, 2010, 02:43:56 pm
So I put them in the spanish.php and english.php files, and for the rest of languages I provide a default value. It isn't needed when all messages are translated in every language file.

Thanks for your effort. My plugin (as Coppermine) has already a language fallback, so there is no need for if ( is_null($description)) function, which can be removed as soon as the needed text is defined in english.php. I won't made those changes to my 1.x version of my plugin because I want to concentrate 100% to the coming v. 2.0 plugin which will add support for other trackers too. However, I will make the configuration.php translateable in my v. 2.0 plugin.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: jmatute on May 10, 2010, 03:01:44 pm
Thanks for your effort. My plugin (as Coppermine) has already a language fallback, so there is no need for if ( is_null($description)) function, which can be removed as soon as the needed text is defined in english.php.

Heard about it, but didn't know it applied here too. I suppose it's my lack of PHP skills.

I won't made those changes to my 1.x version of my plugin because I want to concentrate 100% to the coming v. 2.0 plugin which will add support for other trackers too.

Very interesting: I had in mind to try to include utm_* and user-defined GA variables specially for postcards sent by coppermine. But it will be in the long term, again because of my lack of  PHP skills. And i'm concentrating on translation - at least I feel I can help that way. Just for curiosity: can you advance which ones are you thinking about?

However, I will make the configuration.php translateable in my v. 2.0 plugin.
I'll keep aware of it.

Thank you, and regards
José Luis
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on May 10, 2010, 04:14:43 pm
Heard about it, but didn't know it applied here too. I suppose it's my lack of PHP skills.
Just for curiosity: can you advance which ones are you thinking about?
I'll keep aware of it.

I'm thinking about Piwik and Tynt Insight. Feel free to post more suggestions. I can also look for some GA variables that I could add.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: papukaija on May 30, 2010, 09:38:28 am
This plugin has been replaced by my External tracker (http://forum.coppermine-gallery.net/index.php/topic,65174.0.html) plugin. Therefore this plugin is now unsupported.

Please remove this plugin from the svn and then lock this thread.
Title: Re: Google Analytics plugin for cpg1.5.x
Post by: Joachim Müller on May 31, 2010, 07:56:51 am
Files remain for reference reasons - it's enough to say in this thread that it goes unsupported and should no longer be used. Locking.