theiconic / php-ga-measurement-protocol

Send data to Google Analytics from the server using PHP. Implements GA measurement protocol.
MIT License
655 stars 136 forks source link

conversion event #76

Closed karlismelkis closed 4 years ago

karlismelkis commented 5 years ago

I have javascript which sends conversion event.

example:

gtag('event', 'conversion', {
    'send_to': 'AW-11111111/aaaaaabbbbbbcccc',
    'value': 10.56,
    'currency': 'GBP',
    'transaction_id': 12345
});

I'm wondering if this event is possible to be sent by this php measurement protocol?

alberto-bottarini commented 4 years ago

You can use

* @method \TheIconic\Tracking\GoogleAnalytics\AnalyticsResponse sendEvent()

to send some event

or

* @method \TheIconic\Tracking\GoogleAnalytics\AnalyticsResponse sendTransaction()

to send a transaction