I need to change value of SEO-goals (onclick) on the multi domain website. And I found this thing on the project server(MODX): onclick="yaCounter[[++[[*context_key]].yaKey]].reachGoal('something'); return true;"
And if I change this text it changes everÿwhere. What is the best solution to make it works?
What is it? [[++[[*context_key]].yaKey]] (ModX)
126 views Asked by Maximus Dredoff At
1
[[++[[*context_key]].yaKey]]
- this is tricky solution for multidomain sites. First modx set[[*context_key]]
and forweb
context this means you get -[[++web.yaKey]]
, and then modx getweb.yaKey
system setting and set it to the page. So - you need to create system setting for every context with the name "context_key
.yaKey".