Trigger Convert polling when URL hash changes

Convert experiments do not run when the URL has a hash.

For example:

A website homepage loads with the following URL:

After clicking on a link the page loads something like this:

But, if we setup an experiment with that URL, and the user, does not load that URL as the first visit to the site, the experiment will not trigger. 

This is a common issue of single page apps (SPAs).

Just add the following code to the Project Global JS section of your project.

convert.$(document).ready(function () {
convert.$(window).on('hashchange', function () {
_conv_q = _conv_q || [];

Note: Please test it with your SPA framework, as it might not detect hash changes in all frameworks.

Need assistance? Start a conversation with our Support Team.

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features