Sync VWO data
VWO campaign data is not stored in Magnolia. Instead, links are checked via VWO’s REST API when:
-
You start the VWO app in Magnolia.
-
Your configured background job runs asynchronously.
This ensures that there are no performance issues with the Pages App.
Configure a scheduled job
You can configure a scheduled job using our Scheduler module so that data is synced regularly.
You should create a command.
In this example, the command is called linkVwoCampaigns
.
VWO campaigns may not appear immediately in Magnolia due to the asynchronous approach here. |
-
Create a scheduler job at
/modules/scheduler/config/jobs/linkVwoCampaigns
.Node name Value 📁 scheduler
📁 config
📁 jobs
⸬ linkVwoCampaigns
⬩ catalog
abTestingVwo
⬩ command
linkVwoCampaigns
⬩ cron
00 * * * *
⬩ description
Link VWO AB campaigns to Magnolia pages
⬩ enabled
true
Manually sync campaigns
You can use the Groovy app to manually synchronize your test campaigns with VWO.
-
Go to the Groovy App in Admincentral.
-
Click Add script.
-
Add the following Groovy script to run your
linkVwoCampaigns
command.// trigger VWO linking command println "Executing VWO campaign sync..." cm = info.magnolia.commands.CommandsManager.getInstance() command = cm.getCommand('abTestingVwo', 'linkVwoCampaigns') command.execute(ctx) println "Finished linking VWO campaign."
-
Click Is a script? if not already clicked.
-
Is a script?
-
-
Click Run.
-
Don’t forget to save your changes.