Sitemap compatibility

Affilimate uses your sitemap to efficiently crawl your website for affiliate links.

Standard sitemaps created by plugins like Yoast, RankMath, and so forth are generally supported out of the box. As are custom sitemaps generated by any popular website builder.

Here are a few key points to ensure your Sitemap contains the information we need.

Here's how to make sure Affilimate can:

Read your sitemap (Format requirements)

Here's an example of a properly formatted sitemap:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>https://yourwebsite.com/path-to-a-page/</loc>
    <lastmod>2021-09-07T19:52:02+02:00</lastmod>
  </url>
</urlset>

At a minimum, it must contain:

  • <loc>: The URL location of a page on your site
  • <lastmod>: The timestamp for when that page was last updated

For each page on your site you want to track.

Affilimate will use both of these fields to scan your website for affiliate links, build your heatmaps, and monitor for revisions.

Your sitemap may contain other sitemaps, which will then fetch and parse to discover all the pages on your website.

You should avoid redirects and 404 pages inside your sitemap. If we encounter one of these while scanning your site, you may see an error for that individual page.

Now that your sitemap is formatted properly, here's how to make sure Affilimate can discover it.

Find your sitemap (Discovery requirements)

Affilimate will look for your sitemap in the following, standard locations:

  • yourwebsite.com/sitemap.xml
  • yourwebsite.com/sitemap_index.xml
  • yourwebsite.com/robots.txt when a sitemap URL is specified

If your sitemap is available at another URL, and not specified in your robots.txt, please contact Support so we can set a custom sitemap URL for your website.

Track part of a large website (Gradual onboarding)

Want to start by only scanning, tracking, and attribution affiliate revenue on a section of a large website? Here's how:

  1. Contact Support to supply a URL to a sub-sitemap that contains only the URLs and lastmods of pages you want to track
    • You will need to prepare this sitemap on your own, potentially with the help of a developer.
  2. Install the Affilimate tracking snippet only on pages inside the sub-sitemap
    • You can do this in many ways, such as rendering the JavaScript snippet conditionally based on the Permalink of the page.
    • Or, whether the post is part of a specific category on your website.
    • Again, you will probably need a developer's help to accomplish this.

Pageviews are counted towards your limit for any visit to a page where there are:

  • Affiliate links you've imported for tracking and
  • You've installed the tracking snippet.

Pageviews will still be counted if those pages aren't part of the sub-sitemap you've established for tracking.

Therefore, please be sure to only render the Tracking Snippet on pages you wish to track as part of your subsite and whose pageviews should count towards your subscription plan.

Note: When you set up your network integrations, we'll still pull revenue from the entire account even if you are tracking a subset of the website. 

Track noindexed landing pages (Custom sub-sitemaps)

If you want to track landing pages which are not in your standard sitemap, contact support with the URL of the subsitemap you wish to use as a refresh for these pages.

You can supply multiple sub-sitemaps if needed.

Your sitemaps do not need to be publicly accessible via your main sitemap, or anywhere on your website.

Affilimate only needs it as a reference for when the pages have been changed and to crawl for links.


Have questions? Contact us at support@affilimate.com anytime.

Last Updated 10/6/2021

Create your affiliate dashboard and start tracking the right way.

Affilimate helps publishers collect all your affiliate commissions in one place and match conversions to your content automatically.

Grow your affiliate revenue with proper analytics by creating your dashboard now.

Create your dashboardOr, book a demo

No credit card required • Free 15-Day Trial


Affilimate Analytics App
Affilimate
Newsletter
Monica

Hey, I'm Monica.

I'm the co-founder of Affilimate.

Once per month, I send insider tips and strategies for affiliates in this newsletter.

It's short, practical, and original. Try it out:

No spam, unsubscribe anytime.

AffilimateBy Adaero Software