Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Presslabs

    (@presslabs)

    Hi, can you please check the tracking code on your site? https://support.google.com/analytics/answer/1032385?hl=en

    The pageviews from the site are sent to Google Analytics by tracking code and then Toplytics collect those pageviews and then show up to the widget. First time, if there is no data into GA account, you must wait approx. 1h, until all the process is done.

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    Concerning the tracking code, we use the GA Google Analytics plugin.
    When looking at source, we see that the tracking code in correctly inserted in the pages and posts of the web site.

    Also, we know that the tracking code works because there is data on the Google Analytics Dashboard, with real time views and so on…

    Finally, using a different plugins, Google Analytics Popular Posts, we get and display data, wich means our web server is able to communicate with google analytics.

    Is there a way to check that Toplytics is connecting to Google Analytics ?

    Regards.

    Plugin Author Presslabs

    (@presslabs)

    Can you please check your file toplytics.json located to the root of the site like this https://yoursite.com/toplytics.json This file must contain the data collected from the GA.

    Also please check that all the application is ok like in docs https://plugins.svn.www.ads-software.com/toplytics/trunk/doc/toplytics-api.pdf

    you can trigger the cron by adding this plugin to your site:

    <?php
    /**
     * Plugin Name: Toplytics Cron
     */
    
    register_activation_hook( __FILE__, 'toplytics_cron_activate' );
    function toplytics_cron_activate() {
    	if ( class_exists( 'Toplytics' ) ) {
    		global $toplytics;
    		$toplytics->update_analytics_data();
    	}
    }

    When you activate this plugin you will trigger the Toplytics cron. Save the permalinks from Settings->Permalinks and then check the toplytics.json file.

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    Thank you for the fast response.

    There is no file named toplytics.json located in the root of the site.
    Or anywhere else.

    The application is OK like in docs.

    I added the Toplytics Cron plugin as suggested, activated it.
    Then I saved the permalinks. Still no json file.

    Regards.

    Plugin Author Presslabs

    (@presslabs)

    Can you investigate further using this plugin https://www.ads-software.com/plugins/rewrite-rules-inspector/ the rewrite rules and find out if there is any JSON file there?

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    Thank you again for taking the time to fix this issue.

    Using the rewrite rule inspector, I found this rewrite rule :

    Rule ------------- Rewrite ------------------ Source
    toplytics\.json$ - index.php?toplytics=json - other

    Regards

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello again,

    By the way, when speaking about toplytics.json I thought that you meant that it was physically in the root folder.
    So I went to look for it using FTP.

    I think I understand that you meant virtually.

    And it is present.
    But empty.

    Hope this helps.

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    by empty I mean the address myurl/toplytics.json displays {}

    Plugin Author Presslabs

    (@presslabs)

    Hi, sorry for misunderstanding. What I mean with the toplytics.json file is to check if it’s virtually there, not physically.

    If there is a file called toplytics.json on the root then it no must be there. It must be a rewrite rule working in order to create this file.

    Please try to ‘Flush the rules’ from the plugin above settings page /wp-admin/tools.php?page=rewrite-rules-inspector then check again the JSON. If there is no file then try to access /index.php?toplytics=json and try to test out you rewrite rule mechanism from wordpress if it’s working ok. Please try with another rewrite rule, in some small test plugin see https://codex.www.ads-software.com/Rewrite_API/add_rewrite_rule

    Try to use this plugin https://mario.trypl.com/wp-content/uploads/2015/08/toplytics-debug.zip and also the first one to trigger the toplytics cron, in order to find out how the requests are made. I also recommend you to go the Google API Console https://console.developers.google.com/project and see API’s & auth -> APIs -> Analytics API -> Usage

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello again,

    No worry. It was my fault.
    I am not familiar with rewrite rules.

    I flushed the rules as requested.

    I tested /toplytics.json and /index.php?toplytics=json and they both returned an empty json file, i.e. {}.

    So the rewrite rule works OK.

    It seems that it’s the data collection that does not work.

    Regards

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    I activated the Toplytics Debug plugin.
    In the Toplytics Debug page I see the requests.

    In the Google API Console, API’s & auth -> APIs -> Analytics API -> Usage, I can see the corresponding requests.

    Regards.

    Plugin Author Presslabs

    (@presslabs)

    Can you please send me your technical info on email to analyse the data and find out where is the problem? (my email is [email protected])

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello,

    What info do you need ?

    Regards.

    Plugin Author Presslabs

    (@presslabs)

    Hello, you can send me any information that can help me to figure out (debug) more details about the whole process of the toplytics plugin. I wrote you the email because some info you may not want to share it with everyone. Thanks.

    Thread Starter Anonymous User 8097816

    (@anonymized-8097816)

    Hello again.

    I will send you all the information I can find.
    What do you need ?

    Regards.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[toplytics] widget does not show any posts’ is closed to new replies.