For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Custom code can be used by vendors and enterprise customers. Page Presets appears in the Settings menu only after Anedot turns on custom code for your account. To ask about it, contact our Support team at help@anedot.com.

Before You Begin

Add Custom Code

To add custom code:

  1. Go to Settings > Page Presets > Custom Code.

  2. 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.

  3. 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.

Was this helpful?