Custom Code
Add header and body scripts to every Action Page in your Anedot account with Settings > Page Presets > Custom Code, after Anedot turns custom code on.
Custom Code adds your own script and style code to every public Action Page in your fundraising account. Use it for tracking or styling code that should run on all of your pages. You'll find it in Settings > Page Presets > Custom Code. This article covers who can use it, how to add your code, and how it runs on your pages.
Before You Begin
To add or change custom code, you need Account Management: Edit Account Details and Configuration permissions. See Permission Sets.
Your code applies to every Action Page in your account. To add tracking to one page, see Page Settings: SEO, Sharing, and Tracking.
Add Custom Code
To add custom code:
Go to Settings > Page Presets > Custom Code.
Paste your code into Header Script, Body Script, or both. Header Script code is added to the
<head>tag of your Action Pages, and Body Script code is added to the<body>tag.Click Save.
The message "Custom code saved." appears. To discard edits you haven't saved, click Cancel. To remove code, clear the field and click Save.
How Custom Code Runs
Only
<script>and<style>tags are applied. Other tags, such as<noscript>,<iframe>, or<img>tracking pixels, are left out.Your code runs in the donor's browser after the page loads. It isn't part of the page's initial HTML.
Your code doesn't run in the Page Builder preview. Open your live Action Page to check it.
If the same code is in both fields, it runs only once.
Troubleshooting
Your code isn't running: Make sure it's inside a
<script>or<style>tag, and test it on your live page instead of the preview.Page Presets is missing from Settings: Contact our Support team at help@anedot.com.
A script breaks your page and you can't remove it: Contact our Support team at help@anedot.com.
Related Articles
Was this helpful?

