jamesflight / google-analytics-cookie-parser-php Goto Github PK
View Code? Open in Web Editor NEWGets all the information stored in google's utmz and utma cookies, and converts them into an easy to use object.
Gets all the information stored in google's utmz and utma cookies, and converts them into an easy to use object.
Hello!
I'm trying to use your nice library and found some error: if utmcsr field in utmz cookie contain full URL with dots $utmz->source set to first part of it only.
Ex. __utmz = 256315294.1404213711.4.4.utmcsr=sp.tomica.ru|utmccn=201407-waist|utmcmd=banner|utmcct=banner
$utmz->source // sp
Quick fix - add limit (5) as third param to explode in Utmz.php:83 $cookieBits = explode('.', $cookie, 5);
Hi @jamesflight ,
I'm seeing some deprecations notices that I think could be resolved by a dependency update.
Deprecated: Method ReflectionParameter::getClass() is deprecated in vendor/illuminate/container/Illuminate/Container/Container.php on line 608
Are you still maintaining this library? Would you accept a pull request?
Thanks,
Clément
Is there any way to get the all time variable as per time zone?
currently it working with Standard world UTC time . But need this to be as depend of given country time zone
Hi,
I'm a working on an ecommerce application. Whenever a new order is created by a customer, it stores the value of the utmz
cookie in a field of the database along with the order. I'd like to use your library to parse that field and extract the source, campaign and medium parameters from the raw string.
As I understand it, the library directly reads from the cookies sent with the request. Would it be complicated to modify it so could also parse a string that was previously saved? Something like:
$utmz = GACookie::parseString('utmz', '177910838.1481550491.52.15.utmcsr=newsletter|utmccn=campaign-2016|utmcmd=email');
Thanks,
Clément
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.