Capture A/B Test Version in Google Tag Manager GTM

Has anyone found a way to neatly capture and A/B test version of a page in GTM?

It seems A/B test version is not a variable in HUBL

Hubspot doesn’t render the A/B test version in the URL

Hubspot does output the pageId, and abTestId in their dynamic tracking code when the page loads

It seems I could trigger some sort of special event in GTM, but it doesn’t feel “neat” in that the reporting will require some sort of mapping logic to recognize page versions.

Hi, @ARickard :waving_hand: Thanks for reaching out! Let’s see if we can get the conversation going — @Jnix284 @ChrisoKlepke @Bryantworks do you have any GTM-related experience you can share?

Thank you! — Jaycee