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

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 4 Guests are viewing this topic.

François Keller

ok, thank's, do you want i update the svn version of this plugin with your new ?
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

papukaija


Lockheed

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?

papukaija

The link isn't named "config manager" but just settings. Please post a link to your site if you need further help.

Lockheed


papukaija

That's not what I asked for. I can't reproduce your issue with the given details. Please follow board rules or have a nice debugging weekend.

Lockheed

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?

papukaija

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

Lockheed

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.

papukaija

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?


Quote from: Lockheed on March 04, 2011, 08:21:51 PM
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.

Lockheed

My main browser is Opera, but I tried Chrome and it's the same thing.

The only instance I find in source is this;
<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.

papukaija

Quote from: Lockheed on March 05, 2011, 09:18:40 AM
<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 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);)

Quote from: Lockheed on March 05, 2011, 09:18:40 AM
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?

Lockheed

Yes, the direct access works and I am waiting 24h before GA starts recording stats for my gallery.

Lockheed

Well, it has been three days since I configured the plugin and Google Analytics panel is still saying 'Tracking Unknown'.

papukaija

Quote from: 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'.
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.

Lockheed

I have no other plugins installed and I am not sure how to check the logs.

Lockheed

To be more precise, I don't know what to look for in the logs.

Lockheed


papukaija

Quote from: Lockheed on March 08, 2011, 09:38:56 AM
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.

Quote from: Lockheed on March 08, 2011, 12:22:18 PM
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 (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.

Lockheed

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.