Hi Mathew,
To achieve the use case discussed above, You need to create an HTML offer inside Adobe Target and then in that offer you can write the JS code to pass data to GA and then apply the offer to an Experience inside an Activity (Campaign) . Please follow the below steps to achieve the same :
- Login to Adobe Target
- Add a new HTML Offer (Offers > Create > HTML Offer)
- Name the offer say "Testing Offer" Configure and paste in the JavaScript code (with the <script> tags intact)
You may customize the below Google Analytics code as per your need
Here’s the script:
<script type="text/javascript"> alert("Your Campaign name is " + '${campaign.name}' + " :Your Experience name is "+ '${campaign.recipe.name}'+" :Your campaign Id is "+'${campaign.id}' +" :Your Experience ID is "+ '${campaign.recipe.id}' + " :Your Experience Traffic Type is "+'${campaign.recipe.trafficType}'); var sCampaignName='${campaign.name}'; var sExperienceName = '${campaign.recipe.name}'; _gaq.push(['_setCustomVar',1,'Target' + sCampaignName,sExperienceName,1]); _gaq.push(['_trackEvent','Target',sCampaignName,sExperienceName,undefined,true]); </script>- Apply the above created Offer to an Experience in an Activity say "Experience B"

- For Validation & Testing , we have put alert in offer created above & output will be similar to the snapshot shown below :

Thanks & Regards
Parit Mittal