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 category Action Description Trigger
InitiatePurchase OpenPayStation Tracks the purchase initiation via Pay Station. Clicking on the Buy button.
Buy SuccessPurchase Tracks the purchase process via Pay Station until its completion. Getting a postMessage from Pay Station.
Subscribe Start Tracks the user signup for your service or newsletter via the landing page. Clicking the button to buy the subscription.

Facebook Analytics

Event category Action Description Trigger
InitiatePurchase InitiateCheckout Tracks the purchase initiation via Pay Station. Clicking on the Buy button.
Buy Purchase Tracks the purchase process via Pay Station until its completion. Getting a postMessage from Pay Station.
Subscribe Subscribe Tracks the user signup for your service or newsletter via the landing page. Clicking the button to buy the subscription.

Twitter Ads

Event category Action Description Trigger
Buy Purchase Tracks the purchase process via Pay Station until its completion. Getting a postMessage from Pay Station.
Subscribe SignUp Tracks 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

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

Buy

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

Subscribe

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

fbq('track', 'open-paystation');

Buy

fbq('track', 'Purchase', {value: '0.00', currency: 'USD'});

Subscribe

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

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

Subscribe

twq('track','Sign_Up')

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