Org JavaScript
Arun Sivashankaran avatar
Written by Arun Sivashankaran
Updated over a week ago

FunnelEnvy Org JavaScript allows you to add code that will execute on every page where the FunnelEnvy snippet is deployed, before any Campaign or Variation code runs.

This is useful for adding event listeners for custom goals (for sample code, see our docs on integrating with Segment). It's also handy for implementing helper functions for your Campaign or Variation JavaScript to call.

To add Org JavaScript, just click the link in the left hand menu:

From here you can add and edit Org JavaScript.

Once you save (and the CDN updates), it will execute on every page where you've deployed the FunnelEnvy snippet.

Did this answer your question?