Git Product home page Git Product logo

googleanalytics-plugin's People

Contributors

alekseybobkov avatar alxy avatar ametad avatar bombozama avatar cheb60 avatar daftspunk avatar eoler avatar gergo85 avatar grafxflow avatar gviabcua avatar jakobfdev avatar joelesvensson avatar kukrik avatar lieszkol avatar luketowers avatar mahony0 avatar matteotrubini avatar mirorauhala avatar mohsin avatar mr118 avatar nemod503 avatar niekdemelker avatar norotaro avatar octoberapp avatar rebornishard avatar ribsousa avatar samgeorges avatar theservat avatar vojtasvoboda avatar xlink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

googleanalytics-plugin's Issues

Google Analytics Not Working

Dear Support,

I have installed Google Analytics Plugin, but still not receiving any hits/traffic when seeing it on Google Analytics Report.
Moreover, after see my page source code, i am not seeing any google analytics tracking code.

How to make sure/Test this plugin installation is Successfull ?

Note : i have uploaded json key, profile number and tracking id according to documentation.

Regards & Thanks,

Zuki

Class 'Google_Client' not found

An error Class 'Google_Client' not found appears on the dashboard, after adding statistics panel...

image

Google Analytics version 1.2.1
October build 419

Again the question raised: getting error count(): Parameter must be an array or an object that implements Countable

I downloaded this great plugin. Account creation was successful too. In the development server, this plugin works well, except that browser statistics did not work. When I went to the production server, the error came from the widget:

ErrorException: count (): Parameter must be an array or an object that implements Countable in /.../.../.../.../htdocs/plugins/rainlab/googleanalytics/reportwidgets/browsers/partials/_widget.htm:12

In any case, I mention that the production server uses FactCGI (PHP 7.2).

I found this question and I want to put the same question: #74.

Is this question correct? I checked this "guzzlehttp/guzzle", it's up to date. I decided to temporarily deactivate this plugin, then this error will be thrown:

"Class 'Google_Client' not found" on line 42 of /.../.../.../.../htdocs/plugins/rainlab/googleanalytics/classes/Analytics.php

This is not normal or not? I could not think of what could have caused this error.

Do you have any thoughts on this? And how can it be improved?

Thank you in advance!

EDIT: In any case, I'll put a screenshot here, where the browser statistics widget is empty, it's in my development server...

screen shot 2018-09-20 at 02 41 18

Tracking code not included with component snippet

I've added the details in the settings, all seems OK.

However the tracking code ID isn't being output in the generated Google tracking JS from the plugin component, there's literally a pair of empty quote marks.

Any thoughts? I think I may remove the component snippet and add manually until I hear a reply (swift response would be much appreciated). Thanks

Problem uploading the Private Key

Hy! I'm having a problem when I try to upload de Private Key, I'm getting this error: "Error uploading file: finfo::finfo(): Warning: string extension 'B' invalid"

Any idea?

I18N and L10N

I'm developing E-commerce system with October and using this plugin. If you can add lang folder and make texts and inputs dynamic -takes only 5-10 mins.- this plugin will be very useful for me and others. I can help editing the plugin btw. Thanks.

Needs better error handling

Can't investigate this fruther, but I get this on a fresh install when using the ReportWidgets by this component:

array_slice() expects parameter 1 to be array, null given

I think its due to the fact there is no data just yet.

Permission Issue with any File Based RainLab Items

Hi! I am having a permission issue with Rainlabs Blog (Viewing the Markdown, which I made a ticket for) and here the settings upload. I am clueless as to why this doesn't work!

  • I am using HTTP2, so it's under SSL/443.
  • I did a setfacl with Recursive Defaults, and Persistent Recursive Defaults for www-data:www-data, this works fine for everything. I do not make any files 777 rather its g+rw at the maximum, public can only read.
  • Im running Ubuntu 16.04, PHP7, Apache2, nothing too fancy.

Might anyone know why this is happening?
Thank you I hope to get this cool plugin to work!

oct-perm

InvalidAccessError on save

I'm getting an "Invalid Access Error" alert/error when hitting the save button in the Settings -> Analytics section of October. It seems to only occur on my client, because my colleague's client works fine.

It seems to be client bound and not account bound, because the same user accounts give the same error on my client and my user accounts works fine on other clients.

Client: Safari
OS: OSX El Capitan
October: Build 351
Analytics Version: 1.2.1

Can't save settings or upload private key on fresh install Build 240 (have full permissions)

When I fill out all fields, leave a few, or leave them all blank, I get the exact same thing when I click save:

image

Also, when trying to upload the private key, this pops up and I can't find any solution online. I've been trying to figure this out for the past couple hours.:

image

I definitely have full permissions on my uploads directory as I have and still can upload files to that directory with absolutely no problem elsewhere, like in the "customize back-end" upload logo for example.

Any insight would be appreciated. The error codes aren't descriptive at all and I'm totally out of ideas.

Dashbord widget error

I'm having this error on the dashboard widgets

set the JSON service account credentials using Google_Client::setAuthConfig or set the path to your JSON file with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable and call Google_Client::useApplicationDefaultCredentials to refresh a token with assertion.

It's probably due to a mistake of mine but can't find it. I've followed the instructions.

cURL error 60: SSL certificate problem: unable to get local issuer certificate Even pointed to .PEM file

I followed all the steps mentioned in the section on troubleshooting. But I still see the same error.

I'm running PHP 5.6 on Windows 2012 with IIS 8 and the line of php.ini is:

Any idea what could be happening ?

PHP info Says....

openssl
OpenSSL support enabled
OpenSSL Library Version OpenSSL 1.0.1i 6 Aug 2014
OpenSSL Header Version OpenSSL 1.0.1i 6 Aug 2014
Directive Local Value Master Value
openssl.cafile C:\Certificados\cacert.pem C:\Certificados\cacert.pem
openssl.capath no value

Where to find Property > User Management ?

Instruction says: Click the Admin main menu tab at the top. Select the Property > User Management menu item. Paste the email address from the clipboard in to the field Add permissions for and make sure the permission is set to Read & Analyse. Click Add.

But this not found anywhere in Google Analytics console.. Please help!
analytics

Google Analytics update from 1.0.5 to 1.0.6

Hi, as I got in this morning, I saw a new update to the plugin, so, I decided to update! unfortunatly, I got an error that crashed my whole website! Frontend and backend! I had to replace the google analytics new files for the old ones in order to get it to work.

I did try in a local machine again, to see if it would work, and it did, so, I don't know what's wrong... Here's the error:

<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="robots" content="noindex,nofollow" /> <style> /* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html */ html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} html { background: #eee; padding: 10px } img { border: 0; } #sf-resetcontent { width:970px; margin:0 auto; } .sf-reset { font: 11px Verdana, Arial, sans-serif; color: #333 } .sf-reset .clear { clear:both; height:0; font-size:0; line-height:0; } .sf-reset .clear_fix:after { display:block; height:0; clear:both; visibility:hidden; } .sf-reset .clear_fix { display:inline-block; } .sf-reset * html .clear_fix { height:1%; } .sf-reset .clear_fix { display:block; } .sf-reset, .sf-reset .block { margin: auto } .sf-reset abbr { border-bottom: 1px dotted #000; cursor: help; } .sf-reset p { font-size:14px; line-height:20px; color:#868686; padding-bottom:20px } .sf-reset strong { font-weight:bold; } .sf-reset a { color:#6c6159; cursor: default; } .sf-reset a img { border:none; } .sf-reset a:hover { text-decoration:underline; } .sf-reset em { font-style:italic; } .sf-reset h1, .sf-reset h2 { font: 20px Georgia, "Times New Roman", Times, serif } .sf-reset .exception_counter { background-color: #fff; color: #333; padding: 6px; float: left; margin-right: 10px; float: left; display: block; } .sf-reset .exception_title { margin-left: 3em; margin-bottom: 0.7em; display: block; } .sf-reset .exception_message { margin-left: 3em; display: block; } .sf-reset .traces li { font-size:12px; padding: 2px 4px; list-style-type:decimal; margin-left:20px; } .sf-reset .block { background-color:#FFFFFF; padding:10px 28px; margin-bottom:20px; -webkit-border-bottom-right-radius: 16px; -webkit-border-bottom-left-radius: 16px; -moz-border-radius-bottomright: 16px; -moz-border-radius-bottomleft: 16px; border-bottom-right-radius: 16px; border-bottom-left-radius: 16px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc; } .sf-reset .block_exception { background-color:#ddd; color: #333; padding:20px; -webkit-border-top-left-radius: 16px; -webkit-border-top-right-radius: 16px; -moz-border-radius-topleft: 16px; -moz-border-radius-topright: 16px; border-top-left-radius: 16px; border-top-right-radius: 16px; border-top:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc; overflow: hidden; word-wrap: break-word; } .sf-reset a { background:none; color:#868686; text-decoration:none; } .sf-reset a:hover { background:none; color:#313131; text-decoration:underline; } .sf-reset ol { padding: 10px 0; } .sf-reset h1 { background-color:#FFFFFF; padding: 15px 28px; margin-bottom: 20px; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; border: 1px solid #ccc; } </style> </head> <body> <div id="sf-resetcontent" class="sf-reset"> <h1>Whoops, looks like something went wrong.</h1> <h2 class="block_exception clear_fix"> <span class="exception_counter">1/1</span> <span class="exception_title"><abbr title="Symfony\Component\Debug\Exception\FatalErrorException">FatalErrorException</abbr> in <a title="/home/mywebsite/public_html/plugins/october/drivers/vendor/guzzlehttp/guzzle/src/functions.php line 265" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">functions.php line 265</a>:</span> <span class="exception_message">Cannot redeclare GuzzleHttp\uri_template() (previously declared in /home/mywebsite/public_html/plugins/rainlab/googleanalytics/vendor/guzzlehttp/guzzle/src/functions.php:18)</span> </h2> <div class="block"> <ol class="traces list_exception"> <li> in <a title="/home/mywebsite/public_html/plugins/october/drivers/vendor/guzzlehttp/guzzle/src/functions.php line 265" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">functions.php line 265</a></li> </ol> </div> </div> </body> </html>

And that is litteraly the error that shows up, html and all, I did not copy the code, only the error that I was showed.

After the error, both frontend and backend show this error:
screenshot_4

Unable to load private key

hello, tanks for the plugin.

why I get "Unable to load private key" on all my analytisc reportwidget?
i follow the guide on documentation.

thanks.

Exception error on browsers widget

There are an error on /reportwidgets/browsers/partials/_widget.htm at line 12. It happen when the requested data response is null. I solved this issue, but like I'm new I don't know to do a pull request, so see bellow:

Original file:

        <ul>
            <?php foreach ($rows as $row): ?>
                <li><?= e($row[0]) ?> <span><?= $row[1] ?></span></li>
            <?php endforeach ?>
        </ul>

Modified file:

        <ul>
            <?php if($rows): ?>
                <?php foreach ($rows as $row): ?>
                    <li><?= e($row[0]) ?> <span><?= $row[1] ?></span></li>
                <?php endforeach ?>
            <?php endif ?>
        </ul>

Dashboard Widgets Issue

Argument 1 passed to Google_Client::setCache() must be an instance of Google\Auth\CacheInterface, instance of RainLab\GoogleAnalytics\Classes\CacheItemPool given, called in /plugins/rainlab/googleanalytics/classes/Analytics.php on line 48 and defined

Ease configuration requirements for wider use

At the settings page it is not permitted to only set the Tracking ID and Domain Name. Because the Private Key and Profile ID are required:

image

I would like to use this plugin (the Tracker code component in particular) also when I don't have the Private Key and Profile ID yet. My clients not always are that quick with providing me with those data (key/id) and I want to start sending data from the website with the tracking code.

Of course I could just hardcode the tracking code into the templates, but It would be nice to make this a 'config only' thingy. Where I would have set up the component in the templates and the dashboard ready, the only thing needed should be fill out the configuration correctly.

So my main 'feature request' is: can the validation 'required' be dropped of Private Key and Profile ID?

    /**
     * Validation rules
     */
    public $rules = [
        'gapi_key'   => 'required',
        'profile_id'   => 'required'
    ];

Server responded with 0 code

Hello,

I'm using latest version from github. On Chrome and Chromium everything works fine, but if I use firefox, I got "server responded with 0 code" when uploading json key file.

Private key is publicly accessible

When uploading a private key it is placed in:

/storage/app/uploads/public/

Would it not be more secure to upload to:

/storage/app/uploads/protected/

Missing Document information

Hi,

I am not sure why but some information about this plugin in the october website seems missing now?

Could you please add to the document section the link to GA Events API please and give an example of setting up a custom one.

(This info use to be up there and now it seems missing???)

Anyway, it would be easier for people if it was added to the documentation page please.

Thanks.

(Off to search for the GA Events API page now...)

Rainlab I found the link you should add its this one: https://developers.google.com/analytics/devguides/reporting/core/v3/common-queries

Error when saving backend settings

Hello,

Recently, google analytics plugin displayed an error popup when I try to save the settings in the backend.

It just instantly display a popup, with word "Error" in it. No event logs, nothing that could help me to debug.

I use this plugin since long time, never had problems before, and now I get it on all new projects. On the same server than before.

Don't know what to do as I don't have any logs, if somebody can point me something to do to get more informations...

Thanks

Alex

Custom widget - how to use?

I'd like to get a pie chart of browsers, I'm trying to use the custom pie chart widget but I can't find any documentation.

There are two fields, dimension and metric.

How do I use these?

Dont see Google Analytics in Settings

Installed Google Analytics Plugin into latest October CMS Version (build 346).
Want to configure in Backend, but can not see "Settings > Google Analytics." :(

/tmp folder permissions issues with multiple sites

Hi,
there is an issue with the Google API settings which causes a weird error : "mkdir(); permission denied".
It happens in the case of multiple instances of OctoberCMS + analytics plugin on the same machine executed as different users (through su-exec).

On each instance of the plugin, the Google API will try to create a tmp folder in "/tmp/Google_Client", using the configured su-exec owner/group and a 755 mask.
Indeed when another instance with different owner tries to create stuff inside this folder, it will fail.

You need to override the default configuration to fix the issue :

    ...
    'Google_Cache_File' => array(
        'directory' => sys_get_temp_dir() . '/Google_Client'
    )
    ...
    $config = new Google_Config();
    $config->setClassConfig("Google_Cache_File", "directory", $SOME_OCTOBER_PLUGIN_DIR);
    $client = new Google_Client($config);

Thanks.

"Version not supported"

I just updated this to v1.1.0 and uploaded the new .json key file also checked that the Tracking Id as well as View ID are indeed correct. However, when I goto my dashboard I get this..

screen shot 2016-01-27 at 13 37 03

I even tried deleting the service account and remaking it, adding Read & analyze permission to analytics but I still see this.

Autoload error on version 1.0.7

I just updated to latest version (1.0.7), but there is a error like this about autoload:

ErrorException in autoload.php line 25:
google-api-php-client's autoloader was moved to src/Google/autoload.php in 1.1.3. This redirect will be removed in 1.2. Please adjust your code to use the new location.

Any solution?

Top Pages Widget

in the widget it shows the following error

array_slice() expects parameter 1 to be array, null given

(theres no recent data in the analytics btw)

P12 Certificate File Upload (Build 270)

Hey there,

With the latest 270 build of October I am unable to upload .p12 certificate files for the Google Analytic plugin (version 1.0.3) within it's backend settings page. The upload widget DropZone seems to be setup to only accept a restricted set of file types such as media or text.

I've tried adding fileTypes: p12 to fields.yaml but the issue seems to run deeper into a nest of validation checks. I couldn't find anywhere to declare a set of MIME types in order to pass validation.

Thanks

Dashboard widget error

I get an errormessage on the dashboard widgets:

Argument 1 passed to Google_Client::setCache() must be an instance of Google\Auth\CacheInterface, instance of RainLab\GoogleAnalytics\Classes\CacheItemPool given, called in /....../plugins/rainlab/googleanalytics/classes/Analytics.php on line 48 and defined

Did i miss something? Please let me know if you need more info.

Thanks in advance!

Language

Hello community,

Is someone know how to change the report language ? It's in english but I would like it in french , don't find any info about that .

Regards

Can't upload P12 key

I cannot upload P12 key file, the page throws error. The key is password protected. Can anyone help?

Server responsed with 0 code

Hi,

When uploading my private key, I have an error : Server responsed with 0 code. And after, Can't upload more files.

Libraries Used

Hey sorry to bug you with a non-issue, but I've just been trying to track down some issues in my site. For this analytics plugin, did you ever use a vendor library React for promises (around release 1.0.5)? I appreciate the help!

DISABLE ADBLOCK TO INTERACT WITH THIS REPO

At the very least disable uBlock, it doesn't like the name of this repo so it will cause breakages if you try to do anything normal like comment or submit a new issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.