happyr / googleanalyticsbundle Goto Github PK
View Code? Open in Web Editor NEWThe Google Analytics Bundle lets you send data (like event tracking) to Google.
The Google Analytics Bundle lets you send data (like event tracking) to Google.
The Guzzle function sendAll is deprecated. We need to start using the GuzzleHttp\Pool
Followed all of your instructions in applying google analytics into symfony but when I came to the link to authenticate it says no scopes defined.
Hi there!
I am very interested in using this bundle for our project but we couldn't achieve to install it and make it work.
So I tried to reproduce our error in a brand new project.
Here are the step I followed:
symfony new httpclient
composer require symfony/maker-bundle
composer require template
composer require annotations
php bin\console make:controller
composer require happyr/google-analytics-bundle
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
-> didn't work because of the error message:
Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors
composer require php-http/httplug-bundle php-http/curl-client guzzlehttp/psr7
composer require php-http/guzzle6-adapter
at this point, the kernel is compiling correctly and we created the branch master of our test project
Here is the error I have:
Argument 2 passed to Happyr\GoogleAnalyticsBundle\Http\HttpClient::__construct() must be an instance of Psr\Http\Message\RequestFactoryInterface, instance of Nyholm\Psr7\Factory\HttplugFactory given, called in C:\www\sportfinder\httpclient\var\cache\dev\ContainerIewfoAf\getTrackerService.php on line 14
Because the bundle still wasn't working, I tried to use Symfony HttpClient in the other branch use-symfony-client
git checkout use-symfony-client
composer require symfony/http-client
composer require psr/http-client
composer require nyholm/psr7
Here is the error:
Argument 2 passed to Happyr\GoogleAnalyticsBundle\Http\HttpClient::__construct() must be an instance of Psr\Http\Message\RequestFactoryInterface, instance of Nyholm\Psr7\Factory\HttplugFactory given, called in C:\www\sportfinder\httpclient\var\cache\dev\ContainerD52DYTq\getTrackerService.php on line 14
At this point, I honestly don't know what to do :s
I'm here to help with my limited knowledge of php http client ecosystem.
Best regards,
Benjamin
Hello everyone!
i configured a GoogleAnaliticsBundle and doctrineCacheBundle as saying in the documentatio of each bundle but i got this error:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
The service "happyr.google.analytics.data_fetcher" has a dependency on a no
n-existent service "doctrine_cache.providers.apc_cache".
any help will be aprecieted.
Thanks for your work! It would be nice to have a little doc how to run your bundle ;-)
I'm trying to implement this bundle in a project that is already using Guzzle library version 6.1.
This makes this bundle impossible to install due it needs the version ~5.0.
Composer throws the next errors:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install happyr/google-analytics-bundle 3.2.2
- Conclusion: don't install happyr/google-analytics-bundle 3.2.1
- Conclusion: remove guzzlehttp/guzzle 6.1.1
- Installation request for happyr/google-analytics-bundle ^3.2 -> satisfiable by happyr/google-analytics-bundle[3.2.0, 3.2.1, 3.2.2].
- Conclusion: don't install guzzlehttp/guzzle 6.1.1
- happyr/google-analytics-bundle 3.2.0 requires guzzlehttp/guzzle ~5.0 -> satisfiable by guzzlehttp/guzzle[5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0].
- Can only install one of: guzzlehttp/guzzle[5.0.0, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.0.1, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.0.2, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.0.3, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.1.0, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.2.0, 6.1.1].
- Can only install one of: guzzlehttp/guzzle[5.3.0, 6.1.1].
- Installation request for guzzlehttp/guzzle == 6.1.1.0 -> satisfiable by guzzlehttp/guzzle[6.1.1].
Is it possible to use the 6.1 guzzlehttp
version?
Currently when there is no _ga cookie then ClientIdProvider generates one. This makes browsers with ublock appear in analytics without any source/referrer and without any frontend pageviews and disrupt the statistics.
It would be great to have configuration option to make tracker ignore events when there is no cid
Currently ClientIdProvider::getClientId()
is annotated with @return false|string
but it seems that it is expected to return string and always returns string
Currently the bundle is not allowing Symfony 4 installations
In my opinion it would be great if this bundle could implement sending batch data:
https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#batch
For example if tracker would have method to append data array to it and then separate method to flush the data as a batch.
What do you think? Maybe I could try to implement that.
Is it possible to create a new tag please?
On master you re compat SF ^5 but your last tag is compat SF^4.
Thanks
Is this bundle still maintained?
Hi there,
I'm using this bundle for my website, and I'd like to upgrade to PHP 8.
Unfortunately, the constraint for php is ^7.1
in composer.json.
Do you plan to make the bundle compatible with php 8?
Additional, I ran a check on bundle sources using this and no incompatibility was detected, pretty good news.
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.