Adding Olark to a ModX Site
For Templates: Most Modx Sites use BaseTemplate or a Homepage or Index template for the majority of the site, this is where you want to add Olark.
For Resources:
-
Sign into your ModX manager panel:

-
Access the elements section.

- Create a new chunk and name it olark.
-
Copy your Olark JavaScript code:
-
Paste your code into the olark chunk.

- Don't Forget to hit save.
- Access the template section.
-
On the template that you wish to add Olark add the below chunk tag.
Depending on your ModX version
For 3.0+ (Revolution) use [[$olark]]
For 2.0 and below (Evolution) use {{olark}}

- That's it, you're done!.
- Access the resource section you wish to add Olark to.
-
Turn off the editor

-
Depending on your ModX version
For 3.0+ (Revolution) use [[$olark]]
For 2.0 and below (Evolution) use {{olark}}

- That's it, now you're really done!
Depending how you set up your ModX site you can add Olark to a Template or to separate pages/resources.