Integration with analytics platforms

How it works

Connecting Google Analytics, Facebook Pixel, and Twitter Pixel in your Publisher Account will allow you to track events happening on your site when users interact with it.

Note
When setting up analytics for your landing page, you need to configure Pay Station and Login for the events below to work correctly.

You can track the following events:

Google Analytics

Event categoryActionDescriptionTrigger
InitiatePurchaseOpenPayStationTracks the purchase initiation via Pay Station.Clicking on the Buy button.
BuySuccessPurchaseTracks the purchase process via Pay Station until its completion.Getting a postMessage from Pay Station.
SubscribeStartTracks the user signup for your service or newsletter via the landing page.Clicking the button to buy the subscription.

Facebook Analytics

Event categoryActionDescriptionTrigger
InitiatePurchaseInitiateCheckoutTracks the purchase initiation via Pay Station.Clicking on the Buy button.
BuyPurchaseTracks the purchase process via Pay Station until its completion.Getting a postMessage from Pay Station.
SubscribeSubscribeTracks the user signup for your service or newsletter via the landing page.Clicking the button to buy the subscription.

Twitter Ads

Event categoryActionDescriptionTrigger
BuyPurchaseTracks the purchase process via Pay Station until its completion.Getting a postMessage from Pay Station.
SubscribeSignUpTracks the user signup for your service or newsletter via the landing page.Clicking the button to buy the subscription.

Who can use it

Partners who have already integrated Site Builder, Pay Station (for InitiatePurchase event category and Buy event category) and Login (for Subscribe event category), and set up at least one account: Google Analytics, Facebook Analytics/Facebook Ads, or Twitter Ads.

How to get it

To track the events from the tables, you need to:

  1. Integrate the analytics platform.
  2. Add scripts to your site.

Integrating the analytics platform

  1. Go to your Publisher Account > Site Builder.
  2. Click Configure.
  3. Select Google Analytics/Facebook Pixel/Twitter Pixel from the Apps section.
  4. Insert your tracking ID and click Connect.

Adding Scripts to Your Site

Select proper scripts depending on the analytics platform:

Scripts for Google Analytics

InitiatePurchase

Copy
Full screen
Small screen
ga('send', {
  hitType: 'event',
  eventCategory: 'sitebuilder',
  eventAction: 'open-paystation',
});

Buy

Copy
Full screen
Small screen
ga('send', {
  hitType: 'event',
  eventCategory: 'sitebuilder',
  eventAction: 'buy-btn-pay',
});

Subscribe

Copy
Full screen
Small screen
ga('send', {
  hitType: 'event',
  eventCategory: 'sitebuilder',
  eventAction: 'click-subscribe-submit',
});

You can find these events in Google Analytics account > Behaviour > Events > Top Events.

Scripts for Facebook Analytics

InitiatePurchase

Copy
Full screen
Small screen
fbq('track', 'open-paystation');

Buy

Copy
Full screen
Small screen
fbq('track', 'Purchase', {value: '0.00', currency: 'USD'});

Subscribe

Copy
Full screen
Small screen
fbq('track', 'click-subscribe-submit', {value: '0.00', currency: 'USD', predicted_ltv: '0.00'});

You can find these events in Facebook Analytics account > Business Settings > Measure & Report > Analytics > Pixels > Overview.

Scripts for Twitter Ads

Buy

Copy
Full screen
Small screen
twq(track,Purchase, {
//requires parameters
value: 29.95,
currency: USD,
num_items: 3,
//optional parameters
transaction_id: ORDER-676546-B
});

Subscribe

Copy
Full screen
Small screen
twq('track','Sign_Up')

You can find these events in Twitter Ads account > Tools > Conversion Tracking.

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We're sorry to hear that
Please explain why this article wasn't helpful to you. Message
Thank you for your feedback!
We'll review your message and use it to help us improve your experience.