chevron_right
chevron_right
Removing Scripts From Ezoic Versions
How-To/Instructional

Removing Scripts From Ezoic Versions

Last Updated over a month ago

Introduction

Welcome to our step-by-step guide on removing scripts from Ezoic versions of your website. If you have page-level ads enabled for AdSense or Header Bidding Partners, or any other script that you want to run exclusively on your original site, this article will show you how to ensure those scripts do not display on the Ezoic versions. By using specific Ezoic Remove Tags, you can easily manage which scripts appear where, ensuring accurate and effective testing.

This guide will walk you through the process of applying these tags, helping you maintain consistent and unbiased data for your site's performance evaluations.

Steps

  1. Identify the script you want to remove from the Ezoic versions of your site.
  2. Insert the Ezoic Remove Tags around the script you want to exclude. The structure should look like this:
    <!-- EZOIC_REMOVE_BEGIN -->

    The Script to remove goes here 

    <!-- EZOIC_REMOVE_END -->
  3. Ensure that the EZOIC_REMOVE_BEGIN tag is placed before the script you want to exclude.
  4. Place the EZOIC_REMOVE_END tag after the script you want to exclude.
  5. If you use page-level ads, popups (including vignette/interstitial ads), popunders, inline ads, or floating ads (including anchor or side rail ads), make sure to exclude their tags from Ezoic testing sessions by wrapping them with Ezoic Remove Tags as well. This helps maintain the integrity of Ezoic's split testing process.
  6. Review your changes to ensure that all necessary scripts are correctly wrapped with the Ezoic Remove Tags.

Troubleshooting

If you encounter issues with scripts not being removed as expected, here are some common problems and their solutions:

  1. Incorrect Tag Placement: Ensure that the begin tag is placed directly before the script you want to remove and the end tag is placed directly after the script. Any deviation in placement can result in the script not being removed.
  2. Nested Tags: Check for nested tags or scripts that could interfere with the Ezoic Remove Tags. Make sure there are no overlapping or conflicting tags within the Ezoic Remove Tags.
  3. Script Dependencies: Some scripts may have dependencies or are linked to other scripts or elements on the page. Ensure that these dependencies are also addressed or removed as necessary.
  4. Cache Issues: Clear your browser cache and the Ezoic cache to ensure that the changes take effect. Cached versions of your site may still display the old scripts.
  5. Script Errors: Verify the script itself for any errors or issues that might prevent it from being correctly identified and removed by the tags.

If these steps do not resolve the issue, consider reaching out to Ezoic support for further assistance.

Need Further Assistance?

There are various ways to access Ezoic support. The options available to you will be displayed in your Ezoic Support dashboard.

Loading ...