Name VWO variables consistently

Created on 23 August 2024, 3 months ago
Updated 6 September 2024, 2 months ago

Testing on https://eersaddingtondev.prod.acquia-sites.com/en/recipes/deep-mediterra...

When you view the window.VWO.data.acquia we output:

{
    "title": "Deep mediterranean quiche (VWO data)",
    "content-type": "recipe",
    "taxonomy": {
        "content_section": [
            "Desserts",
            "Main courses"
        ],
        "content_keywords": [
            "Pastry",
            "Egg",
            "Mushrooms"
        ],
        "persona": [
            "Experienced chef"
        ]
    }
}

We should be consistent in our variable naming:

  • content-type
  • content_keywords
  • content_section

Suggestion from VWO is to use _ in all variable names.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom rsaddington

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024