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)
149 views Asked by Maximus Dredoff At
1
[[++[[*context_key]].yaKey]]- this is tricky solution for multidomain sites. First modx set[[*context_key]]and forwebcontext this means you get -[[++web.yaKey]], and then modx getweb.yaKeysystem setting and set it to the page. So - you need to create system setting for every context with the name "context_key.yaKey".