Giter Club home page Giter Club logo

laravel-gamp's Introduction

A full-stack web developer and internet entreprenuer with over a decade of expertise.

Profile Visits Follow on GitHub Follow on Twitter


Metrics

laravel-gamp's People

Contributors

dependabot-preview[bot] avatar fossabot avatar irazasyed avatar james2doyle avatar jdanino avatar royduin avatar shuvroroy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar

laravel-gamp's Issues

How to reset data?

Why was choose Singlton pattern?
Its absolutly not useable in queue jobs!
There is an accumulation of data, how to reset data in gamp object?

cURL error

Hello,
I am running this library on an Ubuntu VM and I keep getting this error:
cURL error 7: Failed to connect to ssl.google-analytics.com port 443: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

However, trying a curl to that website works fine.

How to debug it?
Thank you

How can do that with GAMP?

gtag('event', 'conversion', {'send_to': 'AW-XXXXXXX/XXXXXXXXXX-oD'});
#or 
gtag('event', 'conversion', {
                                'send_to': 'AW-XXXXXXX/XXXXXXXXXX-oD',
                                'value': 2001.99,
                                'currency': 'USD',
                                'transaction_id': 'XPTO'
                            });

InvalidPayloadDataException when using Dependency Injection

Laravel version: v5.4.17
Package version: v1.2.0

I seem to be getting an InvalidPayloadDataException when resolving this package via the service container.

The error seems to be that the TrackingId and ProtocolVersion are not being merged in when the service is resolved. Taking a dump of the resulting Analytics instance it seems these options are missing. However, everything is working fine if I use the Facade.

This has really stumped me. I am using the Facade as a workaround, but I would prefer to inject the service where possible.

Any thoughts would be greatly appreciated.

Usage Example

<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use TheIconic\Tracking\GoogleAnalytics\Analytics;

class FooController extends Controller
{
    /**
     * Set up the controller.
     *
     * @param  \TheIconic\Tracking\GoogleAnalytics\Analytics  $analytics
     * @return void
     */
    public function __construct(Analytics $analytics)
    {
        // See below for result
        dd($analytics);
    }
}

Analytics instance

Analytics {#214 โ–ผ
  #uriScheme: "http"
  #isAsyncRequest: false
  #endpoint: "://www.google-analytics.com/collect"
  #debugEndpoint: "://www.google-analytics.com/debug/collect"
  #isDebug: false
  #singleParameters: []
  #compoundParametersCollections: []
  #httpClient: null
  #availableParameters: array:90 [โ–ผ
    "ApplicationId" => "AppTracking\ApplicationId"
    "ApplicationInstallerId" => "AppTracking\ApplicationInstallerId"
    "ApplicationName" => "AppTracking\ApplicationName"
    "ApplicationVersion" => "AppTracking\ApplicationVersion"
    "ExperimentId" => "ContentExperiments\ExperimentId"
    "ExperimentVariant" => "ContentExperiments\ExperimentVariant"
    "ContentGroup" => "ContentGrouping\ContentGroup"
    "DocumentHostName" => "ContentInformation\DocumentHostName"
    "DocumentLocationUrl" => "ContentInformation\DocumentLocationUrl"
    "DocumentPath" => "ContentInformation\DocumentPath"
    "DocumentTitle" => "ContentInformation\DocumentTitle"
    "LinkId" => "ContentInformation\LinkId"
    "ScreenName" => "ContentInformation\ScreenName"
    "CustomDimension" => "CustomDimensionsMetrics\CustomDimension"
    "CustomMetric" => "CustomDimensionsMetrics\CustomMetric"
    "CurrencyCode" => "Ecommerce\CurrencyCode"
    "ItemCategory" => "Ecommerce\ItemCategory"
    "ItemCode" => "Ecommerce\ItemCode"
    "ItemName" => "Ecommerce\ItemName"
    "ItemPrice" => "Ecommerce\ItemPrice"
    "ItemQuantity" => "Ecommerce\ItemQuantity"
    "Affiliation" => "EnhancedEcommerce\Affiliation"
    "CheckoutStep" => "EnhancedEcommerce\CheckoutStep"
    "CheckoutStepOption" => "EnhancedEcommerce\CheckoutStepOption"
    "CouponCode" => "EnhancedEcommerce\CouponCode"
    "Product" => "EnhancedEcommerce\Product"
    "ProductAction" => "EnhancedEcommerce\ProductAction"
    "ProductActionList" => "EnhancedEcommerce\ProductActionList"
    "ProductCollection" => "EnhancedEcommerce\ProductCollection"
    "ProductImpression" => "EnhancedEcommerce\ProductImpression"
    "ProductImpressionCollection" => "EnhancedEcommerce\ProductImpressionCollection"
    "ProductImpressionListName" => "EnhancedEcommerce\ProductImpressionListName"
    "Promotion" => "EnhancedEcommerce\Promotion"
    "PromotionAction" => "EnhancedEcommerce\PromotionAction"
    "PromotionCollection" => "EnhancedEcommerce\PromotionCollection"
    "Revenue" => "EnhancedEcommerce\Revenue"
    "Shipping" => "EnhancedEcommerce\Shipping"
    "Tax" => "EnhancedEcommerce\Tax"
    "TransactionId" => "EnhancedEcommerce\TransactionId"
    "EventAction" => "Event\EventAction"
    "EventCategory" => "Event\EventCategory"
    "EventLabel" => "Event\EventLabel"
    "EventValue" => "Event\EventValue"
    "ExceptionDescription" => "Exceptions\ExceptionDescription"
    "IsExceptionFatal" => "Exceptions\IsExceptionFatal"
    "AnonymizeIp" => "General\AnonymizeIp"
    "CacheBuster" => "General\CacheBuster"
    "DataSource" => "General\DataSource"
    "ProtocolVersion" => "General\ProtocolVersion"
    "QueueTime" => "General\QueueTime"
    "TrackingId" => "General\TrackingId"
    "HitType" => "Hit\HitType"
    "NonInteractionHit" => "Hit\NonInteractionHit"
    "GeographicalOverride" => "Session\GeographicalOverride"
    "IpOverride" => "Session\IpOverride"
    "SessionControl" => "Session\SessionControl"
    "UserAgentOverride" => "Session\UserAgentOverride"
    "SocialAction" => "SocialInteractions\SocialAction"
    "SocialActionTarget" => "SocialInteractions\SocialActionTarget"
    "SocialNetwork" => "SocialInteractions\SocialNetwork"
    "DocumentEncoding" => "SystemInfo\DocumentEncoding"
    "FlashVersion" => "SystemInfo\FlashVersion"
    "JavaEnabled" => "SystemInfo\JavaEnabled"
    "ScreenColors" => "SystemInfo\ScreenColors"
    "ScreenResolution" => "SystemInfo\ScreenResolution"
    "UserLanguage" => "SystemInfo\UserLanguage"
    "ViewportSize" => "SystemInfo\ViewportSize"
    "ContentLoadTime" => "Timing\ContentLoadTime"
    "DnsTime" => "Timing\DnsTime"
    "DomInteractiveTime" => "Timing\DomInteractiveTime"
    "PageDownloadTime" => "Timing\PageDownloadTime"
    "PageLoadTime" => "Timing\PageLoadTime"
    "RedirectResponseTime" => "Timing\RedirectResponseTime"
    "ServerResponseTime" => "Timing\ServerResponseTime"
    "TcpConnectTime" => "Timing\TcpConnectTime"
    "UserTimingCategory" => "Timing\UserTimingCategory"
    "UserTimingLabel" => "Timing\UserTimingLabel"
    "UserTimingTime" => "Timing\UserTimingTime"
    "UserTimingVariableName" => "Timing\UserTimingVariableName"
    "CampaignContent" => "TrafficSources\CampaignContent"
    "CampaignId" => "TrafficSources\CampaignId"
    "CampaignKeyword" => "TrafficSources\CampaignKeyword"
    "CampaignMedium" => "TrafficSources\CampaignMedium"
    "CampaignName" => "TrafficSources\CampaignName"
    "CampaignSource" => "TrafficSources\CampaignSource"
    "DocumentReferrer" => "TrafficSources\DocumentReferrer"
    "GoogleAdwordsId" => "TrafficSources\GoogleAdwordsId"
    "GoogleDisplayAdsId" => "TrafficSources\GoogleDisplayAdsId"
    "ClientId" => "User\ClientId"
    "UserId" => "User\UserId"
  ]
}

Stack Trace

[2017-08-14 16:57:43] local.ERROR: TheIconic\Tracking\GoogleAnalytics\Exception\InvalidPayloadDataException: Minimum required parameters not met for payload data, the following must be set: ProtocolVersion, TrackingId and ClientId in /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/theiconic/php-ga-measurement-protocol/src/Analytics.php:568
Stack trace:
#0 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/theiconic/php-ga-measurement-protocol/src/Analytics.php(848): TheIconic\Tracking\GoogleAnalytics\Analytics->sendHit('sendEvent')
#1 /Users/b-argo/Dropbox/Projects/majic-lamp/app/Http/Controllers/Promotions/RedeemController.php(97): TheIconic\Tracking\GoogleAnalytics\Analytics->__call('sendEvent', Array)
#2 /Users/b-argo/Dropbox/Projects/majic-lamp/app/Http/Controllers/Promotions/RedeemController.php(77): Genii\Http\Controllers\Promotions\RedeemController->redirect(Object(Genii\Models\Promotions\Promotion))
#3 [internal function]: Genii\Http\Controllers\Promotions\RedeemController->handle(Object(Genii\Models\Promotions\Promotion))
#4 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(55): call_user_func_array(Array, Array)
#5 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\Routing\Controller->callAction('handle', Array)
#6 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(203): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(Genii\Http\Controllers\Promotions\RedeemController), 'handle')
#7 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Route.php(160): Illuminate\Routing\Route->runController()
#8 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(559): Illuminate\Routing\Route->run()
#9 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#10 /Users/b-argo/Dropbox/Projects/majic-lamp/app/Http/Middleware/HttpsProtocol.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#11 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Genii\Http\Middleware\HttpsProtocol->handle(Object(Illuminate\Http\Request), Object(Closure))
#12 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#13 /Users/b-argo/Dropbox/Projects/majic-lamp/app/Http/Middleware/Sandbox.php(48): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#14 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Genii\Http\Middleware\Sandbox->handle(Object(Illuminate\Http\Request), Object(Closure))
#15 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#16 /Users/b-argo/Dropbox/Projects/majic-lamp/app/Http/Middleware/Auth/Authenticate.php(82): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#17 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Genii\Http\Middleware\Auth\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#18 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#19 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#20 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#21 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#22 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(65): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#23 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#26 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#27 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#29 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#30 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#32 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(59): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#35 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#38 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(561): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#39 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(520): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#40 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Router.php(498): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#41 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(174): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#42 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(30): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#43 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#44 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(30): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#47 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#48 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#50 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#51 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#52 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#53 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(148): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#56 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(149): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#57 /Users/b-argo/Dropbox/Projects/majic-lamp/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#58 /Users/b-argo/Dropbox/Projects/majic-lamp/public/index.php(51): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#59 /Users/b-argo/.composer/vendor/laravel/valet/server.php(133): require('/Users/b-argo/D...')
#60 {main}  

Proxy

Hey, can I set somewhere a proxy for the CURL calls? Greets

New release after adding Laravel 11 support

Is there a reason there hasn't been made a new release after adding Laravel 11 support?
We use this package and we see Laravel 11 is supported on master, but there hasn't been made an actual release with those changes.

Cleanup non issue

When my account was compromised a spam issue was created in this repo. I sincerely apologize. Cleaning up such issues via script.

How can I get clientId?

Long time ago I already used your package, but seems problem with missing GA Client ID.
I not quite sure how to get it.

Now I find it from cookie, but still have problem no GA Client ID sometimes.
Do you have any suggest?

Async vs Sync Request

While trying to send page views hits and e-commerce hit if I send synchronous requests then I can see the data on my Google Analytics dashboard.. When I do the same with async request I don't see any hits. Any idea what the problem could be?

I'm switching the request type using the parameter in the config gamp.php file
'async_requests' => false,

Problem with install

$ composer require irazasyed/laravel-gamp
Using version ^1.1 for irazasyed/laravel-gamp
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for irazasyed/laravel-gamp ^1.1 -> satisfiable by irazasyed/laravel-gamp[v1.1.0].
    - Conclusion: remove symfony/finder v3.0.4
    - Conclusion: don't install symfony/finder v3.0.4
    - irazasyed/laravel-gamp v1.1.0 requires theiconic/php-ga-measurement-protocol ^2.0 -> satisfiable by theiconic/php-ga-measurement-protocol[v2.0.0, v2.1.0, v2.1.1].
    - theiconic/php-ga-measurement-protocol v2.0.0 requires symfony/finder ^2.5 -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4].
    - theiconic/php-ga-measurement-protocol v2.1.0 requires symfony/finder ^2.5 -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4].
    - theiconic/php-ga-measurement-protocol v2.1.1 requires symfony/finder ^2.5 -> satisfiable by symfony/finder[v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.13, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.10, v2.7.11, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.1, v2.8.2, v2.8.3, v2.8.4].
    - Can only install one of: symfony/finder[v2.8.0, v3.0.4].
    - Can only install one of: symfony/finder[v2.8.1, v3.0.4].
    - Can only install one of: symfony/finder[v2.8.2, v3.0.4].

What I do wrong?

Laravel 8 Support

Laravel 8 is due to be released tomorrow. Having checked the upgrade guide, Laravel requires Guzzle V7, but The Iconic's package which this is a layer over is limited to Guzzle V6. Looks like no upgrades for The Iconics packages have been done for quite a few months and that looked to be a one-off.

Issue with theiconic/php-ga-measurement-protocol for PHP 8.1

This package is already abandoned and it contains a deprecation warning

http_build_query(): Passing null to parameter #2 ($numeric_prefix) of type string is deprecated in /vendor/theiconic/php-ga-measurement-protocol/src/Network/PrepareUrl.php on line 48

Any plan on replacing this package?

How to send custom dimensions/metrics data?

I'm sending something like this, but don't get any custom data sent. What am I missing here?

        $gamp = GAMP::setClientId( '123456' );
        $gamp->setDocumentPath( '/test' );
        $gamp->setIpOverride('123.123.123.123');
        $gamp->setCustomDimension('4',1);
        $gamp->setCustomDimension('5',2);
        $gamp->setCustomMetric('6',1);
        $gamp->setCustomMetric('7',2);
        $gamp->sendPageview();

Not Working Please Help

I need your help. I have setup laravel-gamp on my laravel project. I followed your instruction. But it seems to not working. What else should I check?

How to get client id?

Sorry for newbie question. I try to get from session or cookie not work. Can you advice me to get it, please.

PHP8 release

Thanks for you great package!

Would it be possible to release a version with PHP8 support? I see that the master branch supports PHP8, but there is not version to reference it yet.

GA4 Support

Hi,

i've try'd to setup the library with GA4, but it doesn't work.

Is an update planned?

Version v2.0.0 released

Just a heads up. I released v2.0.0 of the php-ga-measurement-protocol package. It uses Guzzle 6 as the HTTP client so it no longer supports PHP 5.4, only 5.5 or above.

I'll maintain a separate branch v1 for version 1 releases, only important fixes will be applied to version 1 branch.

Feel free to do something similar so that users of your package can start using Guzzle 6 which implements the PSR-7 standard.

All transactions are considered direct traffic

When a credit card purchase is made, my web page redirects the user to the web page of his bank where he authenticates his card. Afterwards, the bank's website directs the user to my website again. At this time I launch the event. The problem is that all events are treated as direct traffic.

Can't install Laravel-gamp package (Laravel 6.0) => PHP Fatal error

After running:

composer require irazasyed/laravel-gamp

I get:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files

and then, the error:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to Composer\Autoload\ClassLoader::addClassMap() must be of the type array, int given, called in phar:///usr/local/bin/composer/src/Composer/Autoload/AutoloadGenerator.php on line 767 and defined in phar:///usr/local/bin/composer/vendor/composer/ClassLoader.php:92

Do you know how can I solve this?

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.