How to use Variation ID and Project ID in variation code

If you want to easily get variation ID and project ID for tracking or something else, you can just use the dynamic placeholders {{variationID}} and {{projectID}}.

console.log("{{variationID}}");
console.log("{{projectID}}");
console.log("{{projectName}}");
console.log("{{projectName}}");

A dataLayer example:

if(typeof dataLayer !== 'undefined') {
  dataLayer.push({'variationID': '{{variationID}}'});
  dataLayer.push({'projectID': '{{projectID}}'});
  dataLayer.push({'variationID': '{{variationIName}}'});
  dataLayer.push({'projectID': '{{projectName}}'});
}