Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2] 3 4 5   Go Down

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

0 Members and 1 Guest are viewing this topic.

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #20 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 ?
Logged
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

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Posts: 333
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #21 on: February 26, 2011, 09:32:03 pm »

Yes, that can't be a bad idea.
Logged

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #22 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?
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 #23 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.
Logged

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #24 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/
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 #25 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 or have a nice debugging weekend.
Logged

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #26 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?
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 #27 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".
Logged

Lockheed

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

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #30 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.
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 #31 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?
Logged

Lockheed

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

Lockheed

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

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #35 on: March 08, 2011, 09:38:56 am »

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

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #36 on: March 08, 2011, 12:22:18 pm »

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

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #37 on: March 08, 2011, 12:42:34 pm »

Forgot to activate the plugin...  ::)
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 #38 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 (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.
Logged

Lockheed

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 33
Re: External tracker (Google Analytics, Piwik, etc) for cpg.1.5.x
« Reply #39 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.
Logged
Pages: 1 [2] 3 4 5   Go Up
 

Page created in 0.04 seconds with 20 queries.