Skip to content

REToolkit/carrot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carrot

Custom code for Carrot sites

Usage

Add the appropriate code snippet in Carrot Site > Settings > Analytics & Scripts > Footer Scripts – run after the site is loaded

Attribution for REToolkit

This should be added to all sites.

Options

Options are passed in as a JSON object.

  • "alignment": "left | center (default)"
  • "type": "logo | link (default)"
  • "utm_source": "client (default)"
  • "utm_medium": "footer (default)"
  • "utm_campaign": "brand (default)"
  • "utm_content": "[referring_base_url] (default)"
  • "utm_term": "keyword_used_in_link" - generally only used with PAID ads

Examples

<!-- To insert the div with image and link -->
<script src="https://cdn.jsdelivr.net/gh/retoolkit/carrot/dist/attr.min.js"  id="io.retoolkit.attr" data-option='{"type": "logo"}' defer></script>
<!-- To insert just the text link -->
<script src="https://cdn.jsdelivr.net/gh/retoolkit/carrot/dist/attr.min.js"  defer></script>

About

Custom code for Carrot sites

Resources

License

Stars

Watchers

Forks

Packages

No packages published