OneTrust Cookie Consent Analyze/Optimize

We recently purchased analyze and optimize for our website. We also use OneTrust for our cookie consent set up.

Webflow provided this article with help on connecting the two: https://help.webflow.com/hc/en-us/articles/34272466616083-Manage-site-tracking-consent#01JA6CX6NX380Z55A3F9SDF49X

I don’t have a lot of JS experience so I don’t feel super comfortable customizing the code.

Would someone be able to help key me in on what we should be adjusting.

The end goal is so that if a user opts in to one of the groups (could be any for an example) to fire off Analyze and Optimize.

I just can’t tell where I should be adjusting/filling in the blanks on this sample script.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)