Help & Documentation
Setup guides and developer reference
Connecting a WooCommerce Store
Connect your WooCommerce store to see orders, products, revenue, and conversion data in your dashboard.
1 Generate API Keys
- Log in to your WordPress admin panel
- Go to WooCommerce → Settings → Advanced → REST API
- Click Add key
- Description:
Advertool.io - User: Select your admin account
- Permissions: Read
- Click Generate API key
- Copy the Consumer Key (starts with
ck_) and Consumer Secret (starts withcs_)
2 Add the Store in Advertool.io
- Go to Settings and click Add Store
- Platform: WooCommerce
- Store Name: A display name (e.g. "My Shop")
- Store URL: Your full site URL (e.g.
https://myshop.com) - API Key: Paste the Consumer Key
- API Secret: Paste the Consumer Secret
- Click Add Store
Your dashboard will begin loading data immediately. Use the store selector in the header to switch between stores.
Connecting a Shopify Store
Connect your Shopify store to see orders, products, revenue, and conversion data alongside your WooCommerce stores.
1 Create a Custom App in the Shopify Developer Dashboard
- Go to partners.shopify.com or your Shopify Developer Dashboard
- Click Apps → Create app
- Name it (e.g. "Advertool.io")
- Under Settings → Credentials, note your Client ID and Client Secret
2 Configure API Scopes
Your app needs the following Admin API access scopes:
read_orders— required for orders, revenue, and conversion dataread_products— required for product rankingsread_customers— optional, for customer geographic data
Set these in your app's configuration in the Developer Dashboard before installing.
3 Install the App on Your Store
- In the Developer Dashboard, go to your app → Versions
- Create a new version if you haven't already
- Install the app on your target store (e.g.
yourstore.myshopify.com)
4 Add the Store in Advertool.io
- Go to Settings and click Add Store
- Platform: Shopify
- Store Name: A display name (e.g. "My Shopify Store")
- Store URL: Your Shopify URL (e.g.
https://yourstore.myshopify.com) - Client ID: From the Developer Dashboard
- Client Secret: From the Developer Dashboard
- Click Add Store
Advertool.io will use the Client Credentials Grant to obtain an access token automatically. Tokens are refreshed every 24 hours in the background.
Tracking Pixel Setup
Advertool.io tracking pixels let you measure page views, clicks, and purchase conversions on any website — including external landing pages and your WooCommerce stores.
1 Create a Pixel
Go to Settings and scroll to the Tracking Pixels section. Click Add Pixel, give it a name (e.g. "Facebook Landing Page"), select the store it belongs to, and click Save.
2 Install the Snippet
After creating the pixel, a code snippet appears on the card. Click Copy Snippet and paste it into the <head> of every page you want to track.
For WordPress/WooCommerce sites, add it to your theme's header.php file or use a header scripts plugin.
3 Track Purchases (Conversions)
To track purchase conversions with dollar amounts, add the following code to your WooCommerce thank-you page template.
Code to add to the thank-you page:
header.php, it's already there.How it works:
- When a customer completes checkout, the thank-you page loads
- The code waits for the pixel script to load, then fires a
purchaseevent - The order total and order ID are sent to Advertool.io
- The data appears on the Pixels reporting page under Conversions and Revenue
Pixel Events Reference
The tracking pixel supports three event types:
Page View
Fires automatically when the page loads. No code needed.
Click
Fires automatically on every click. Captures the element text, link URL, and element type.
Purchase
Fires manually via JavaScript. Use this on your order confirmation / thank-you page.
Manual Click Event
You can also fire click events manually if needed:
Manual Page View
For single-page apps where the URL changes without a full reload:
GDPR Cookie Consent (Optional)
By default, the pixel tracks immediately when the page loads. If your site requires cookie consent for GDPR/CCPA compliance, add &consent=1 to the snippet URL:
When consent mode is enabled:
- A consent banner appears at the bottom of the page
- No cookies are set and no events are tracked until the visitor clicks Accept
- If the visitor clicks Decline, no tracking occurs and the banner won't show again
- The visitor's choice is remembered for 1 year via a consent cookie
Custom Consent Integration
If you already have your own cookie consent banner (e.g. CookieBot, Termly, OneTrust), you can control the pixel programmatically instead:
grantConsent() / revokeConsent(), you don't need &consent=1 in the snippet URL. Just load the pixel normally and call these methods from your own consent handler.Viewing Reports
Go to the Pixels page in the sidebar to see:
- Total Page Views — how many times tracked pages were loaded
- Total Clicks — all click events across your pages
- Conversions — purchase events fired from thank-you pages
- Revenue — total dollar amount from purchase events
- Conv. Rate — conversions divided by page views
Use the store selector to filter by store, and the date picker to filter by time period. Click Export CSV to download the data.
Managing Pixels
In Settings → Tracking Pixels, you can:
- Rename — edit the name field and click Save
- Pause — temporarily stop recording events (the snippet stays on your site but events are ignored)
- Activate — resume recording after pausing
- Delete — permanently remove the pixel and all its event data
- Copy Snippet — get the installation code for your developers