Hello @casydigi
To prevent Google from crawling the pages, you could consider adding a directive in your robots.txt file to disallow the crawling of URLs containing “?mailoptin-ajax=track_optin_impression”.
Here’s the robots.txt rule to use:
User-agent: *
Disallow: /*?mailoptin-ajax=track_optin_impression
This rule tells all web crawlers (User-agent: *) not to crawl any URLs that contain “?mailoptin-ajax=track_optin_impression”.
Note that adding this directive to your robots.txt file will only prevent Google and other search engines from crawling those pages. It will not remove those pages from search results if they have already been indexed. To remove already indexed pages, you can use the Google Search Console’s URL removal tool.
You can also disable impression tracking completely by MailOptin.
Regards
Thanks for the reply.
I’m aware of the rule that can be created in the robots.txt, but I would prefer that these additional URLs aren’t created in the first place.
Please can you let me know why they are bein gcreated and how important they are?
Also, does the ‘disable impression tracking’ prevent them from being created? Does disabling this option, create any issues with the functionaility of the plugin?
Many thanks
The URL is dynamically generated when MAilOptin wants to track an impression. MailOptin does not display the URL anywhere on your site. You can view the source code of your website pages, and you won’t find the URL anywhere.
I still don’t know how search engines are discovering them. Perhaps a misconfigured cache or website optimization plugin or service could be the cause.