There are times when you may want to target an error page on your website. The most common error for websites is a 404 error page. These pages can have varying urls and are not easily targeted. Here are some instructions on how to target these type of pages.
Targeting 404 pages is a bit tricky. Here are some instructions on how to do it:
- If the web server redirects you to a specific error page, ie: mysite.com/error
- You should be able to target this page URL normally with /error
- If the web server preserves the original URL, ie mysite.com/some-unknown-page
Since we can't detect 404's automatically and the URL is not unique we must use custom properties to target these pages. - Find the HTML template for your 404 pages and add the following code immediately after your Qualaroo snippet:
<script>_kiq.push(['set', { is_404: 1 }]);</script> - Create a new survey for your 404 pages with simple URL targeting to mysite.com/*
- Under targeting choose Advanced then "When passed custom property is matched". Enter the following in the field below:
is_404=1
Comments
0 comments
Article is closed for comments.