Start Here 👋
This article will help you setup the Maxweb integration with Cometly. Please follow the instructions in the video below for the quickest setup and make sure you read through the important setup steps and watch all instructional videos to ensure Cometly is tracking correctly.
Important: Ignore the Setup section in Cometly if you want to track Maxweb sales data. Maxweb has a specific setup and uses a specific URL parameter found in this article. Follow this article step-by-step for implementation.
Understand the metrics you will track
Our Maxweb Integration will track the following metrics:
Please view the table below to understand how Cometly tracks key Maxweb metrics.
Unfortunately you are not able to track Initiate Checkouts for Maxweb at this time. Initiate Checkouts are available with our BuyGoods and ClickBank integrations.
Maxweb Metrics | Cometly Metrics |
Visitors → | View Content |
Purchase → | Purchase |
| LP CTR (Landing page click-through rate) |
View Content - visitors that visit your Maxweb VSL/TSL
Purchase - visitors who purchased and your commission amount
Upsell Purchase - the number of such transactions that are upsells during checkout
Upsell Revenue - a subset of your total sales revenue. It specifically accounts for the revenue generated from upsells in your funnel, or when they add extra items to their purchase.
Gross Revenue is the total revenue generated. Upsell Revenue is automatically included in the Gross Revenue. When you calculate your Gross Revenue, you're aggregating all income from sales, and this naturally includes the additional revenue gained from upsells. In other words, Upsell Revenue is a component that contributes to the overall Gross Revenue figure.
Cost Per Upsell - a metric that calculates the average advertising expenditure required to generate one upsell purchase. It is determined by dividing the total amount spent on ads by the number of upsell purchases achieved.
LP CTR - LP CTR or (Landing Page CTR %) is the total number of view content events divided by the number of link clicks.
Pro Tip: Now that you have an understanding of the metrics you will be using within Cometly, make sure you configure your Ads Manager to reflect these metrics.
Step 1: Add the Cometly Postback URL to Maxweb
In this step you are going to retrieve the Maxweb Postback URL from within your Cometly account and add to your Maxweb account.
In your Cometly account, navigate to the Integrations page in your Cometly space and scroll down to the Connections section.
Click Add Integration
Select Maxweb as your integration and click Next
Click Activate Maxweb
Copy the Postback URL
Login to your Maxweb account and navigate to your "AffOverview" page. You can navigate here by clicking the below link:
Once you are on that page, in the top right corner, click your name and then click "Postback Pixels"
On the postback Pixels page, click 'Add new'
Paste in the Cometly Postback URL, make sure the Status is "Active" and the Event is "Purchase" and then click "Save"
Step 2: Add scripts to your landing page
You need to add the scripts below to your landing page. You can add the scripts to any landing page builder as long as they have the option to add scripts to the <head> and <footer> or <body> of the landing page. You will also edit your offer URL to setup the BuyGoods conversion API in this step.
If you are using ClickFunnels for your landing page, while in the editor for the funnel step, click 'Settings' > 'Tracking Code'.
Footer Codes:
Add the following scripts below to the </> FOOTER CODE section:
*Passes parameters to the VSL offer page
<script src="https://app.cometly.com/affiliate/maxweb"></script>
*Enables the Maxweb conversion API
<script type="text/javascript" src="https://maxweb.com/js/mw-fbclid.js"></script>
*Automatically fires a View Content event when a Maxweb offer link is clicked
<script>
document.querySelectorAll('a[href*="https://mweblinx.com"]').forEach(function(link) {
link.addEventListener('click', function() {
comet('view_content');
});
});
</script>
Header Codes:
Add your Cometly base code and your Facebook pixel code to the </> HEADER CODE section:
Login to your Cometly account, and click 'Getting Started' on the left and then Copy the code under "Step 1"
Install the Cometly base code pixel into the <head> section on your landing page.
Set Up Conversion API Parameter to send the fbclid (facebook click id)
Configure the setup below anywhere your offer URL is present. You should link any buttons or images on your landing page that contain the offer URL.
* the example below shows the Maxweb offer URL on the button and the image.
To set up the conversion API in Step 6, you need to add &fb=1 to you offer URL:
Here is an example:
(do not add the link below to your landing page, it is just an example of what your link should look like)
https://glucofortnow.com/g-gluco/index.php?aff_id=XXXXX&fb=1
Install Meta pixel in the <head> code of your landing page
Ensure you have installed the Meta pixel to the <head> code in your landing page. The Meta pixel should be ABOVE the Cometly base code pixel.
Step 3: Add URL parameters to your ads for traffic going to Maxweb offers
Important: Maxweb has a specific setup and uses specific UTM parameters found in this article. Follow this article step-by-step for implementation.
The following URL parameters are required for tracking Maxweb purchases with Cometly:
Meta
Copy/paste the below URL parameters to your Meta ads in the "URL Parameter" box located in the Tracking section at the ad level:
subid={{ad.id}}&c_ad_id={{ad.id}}&c_source=facebook&comet_source={{site_source_name}}&comet_ad_id={{ad.id}}&comet_placement={{placement}}
TikTok
Add the following URL parameters to your Website URL:
subid=__CID__&c_ad_id=__CID__&c_source=tiktok&comet_source=tiktok&comet_ad_id=__CID__
Cometly needs the following URL parameter code attached to the end of every Website URL in the 'Tracking Template' section of each of your regular Google ad campaigns that are not Smart Campaigns:
{lpurl}?subid={{ad.id}}&c_source=google&c_ad_id={creative}&comet_source=google&comet_network={network}&comet_campaign={campaignid}&comet_ad_group={adgroupid}&comet_ad_id={creative}&comet_keyword={keyword}
To set these up inside the Google Ads manager, navigate to Settings > Campaign Settings and select the campaigns that you want to track with Cometly. Then click Edit > Change tracking templates.
Then you should see a box labeled New tracking template and this is where you will need to place the UTM parameters listed above.
Once those parameters have been pasted, you can click "Apply" to apply those changes.
Step 4: Connect your ad accounts
Connect Your Profile to Cometly
Connecting your personal profile allows Cometly to access the ad accounts you have permission to use. Once your profile is connected, you can link those ad accounts to your space for tracking and reporting.
Go to Integrations:
On the left side menu, click Integrations.Select an Ad Platform:
Click the icon for the ad platform you want to connect (e.g., Facebook, Google, TikTok, LinkedIn).Sync Your Profile:
Follow the prompts to sync your profile and link your accounts.
Connect Ad Accounts to Your Space
After connecting your profile, click on the ad platform icons (Facebook, TikTok, Google, LinkedIn) to see the ad accounts you have access to. These accounts are linked to your personal profile, so only you can see and manage them.
Click Connect next to the ad account you want to add to the space.
Once connected, the ad account will appear under Connected Ad Accounts and be visible to all team members in the space.
Step 5: Data Expectations After Connecting Ad Accounts
After enabling tracking by connecting your ad account, it will take up to 60 minutes for data to refresh and appear in Cometly.
During this time, active campaigns won’t show in the Cometly Ads Manager. Once the data refreshes within the 60-minute window, all active campaigns will automatically appear.
Ad and event conversion data will begin displaying from the moment tracking is enabled. Past data cannot be retrieved retroactively.
Step 6: Configure Conversion API's to send Purchase data to the ad platforms
Turning on the conversion API in your Cometly space will automatically send event data back to Meta.
Setup Cometly Conversion API
In your Cometly account, navigate to Events Manager, click Conversion API.
Select "Send only attributed events" and then click "Save"
Setup Maxweb Conversion API
Please follow the steps on Maxweb Help Article to further set up the conversion API inside BuyGoods. This must be setup to send enhanced Purchase conversions to Meta and Google.