The docs for Google optimize server side events are written for analytics.js is there a way to do the same thing using gtag.js? https://developers.google.com/optimize/devguides/experiments
ga('set', 'exp', `${experimentId}.${variationId}`);
ga('send', 'pageview');
something along the lines of:
gtag('event', '???', {
???: `${experimentId}.${variantPosition}`,
});
this syntax should work:
source: https://support.google.com/optimize/thread/36142685/is-there-a-way-to-implement-the-server-side-experiments-with-a-gtag-instead-of-ga-tracking-code?hl=en