<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: utm tracking through Adobe Launch custom code in Adobe Analytics Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453657#M37556</link>
    <description>&lt;P&gt;Thank you so much!! This is super helpful to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"Query String Parameter" data element. And, creating data element for each.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 13:49:17 GMT</pubDate>
    <dc:creator>asheth2295</dc:creator>
    <dc:date>2022-05-27T13:49:17Z</dc:date>
    <item>
      <title>utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453330#M37514</link>
      <description>&lt;P&gt;I am trying to implement UTM tracking through the Adobe Launch custom code section in the extensions configure tracker custom code. I was curious to know what other ways I can capture the&amp;nbsp;utm_campaign,utm_source, and utm_medium through Adobe Launch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  /* set s.campaign */
    if(!s.campaign){
        s._utm_campaign=s.getQueryParam('utm_campaign');
        s._utm_source=s.getQueryParam('utm_source');
        s._utm_medium=s.getQueryParam('utm_medium');
        s._utm_term=s.getQueryParam('utm_term');
        s._utm_content=s.getQueryParam('utm_content');
        s.campaign=s._utm_campaign + "|" + s._utm_source + "|" + s._utm_medium + "|" + s._utm_term + "|" + s._utm_content;
        if(s.campaign === "||||"){s.campaign = ""};
    };  
  
   if(!s.campaign){
    s.cpcsource=s.getQueryParam('cpcsource');
    s.cpcmedium=s.getQueryParam('cpcmedium');
    s.cpccampaign=s.getQueryParam('cpccampaign');
    s.glcid=s.getQueryParam('glcid');
    s.campaign=s.cpcsource + "|" + s.cpcmedium + "|" + s.cpccampaign + "|" + s.glcid;
      if(s.campaign === "|||"){s.campaign = ""};
    };&lt;/LI-CODE&gt;&lt;P&gt;d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 14:56:16 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453330#M37514</guid>
      <dc:creator>asheth2295</dc:creator>
      <dc:date>2022-05-25T14:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453391#M37522</link>
      <description>&lt;P&gt;Yes, your code will work, although it is unnecessary to add all of those variables to the "s" global project. You can use standalone variables.&lt;BR /&gt;E.g.&lt;/P&gt;&lt;PRE&gt;  /* set s.campaign */
    if(!s.campaign){
        let _utm_campaign=s.getQueryParam('utm_campaign');
        let _utm_source=s.getQueryParam('utm_source');
        let _utm_medium=s.getQueryParam('utm_medium');
        let _utm_term=s.getQueryParam('utm_term');
        let _utm_content=s.getQueryParam('utm_content');
        s.campaign=_utm_campaign + "|" + _utm_source + "|" + _utm_medium + "|" + _utm_term + "|" + _utm_content;
        if(s.campaign === "||||"){s.campaign = ""};
    };  
  
   if(!s.campaign){
    let cpcsource=s.getQueryParam('cpcsource');
    let cpcmedium=s.getQueryParam('cpcmedium');
    let cpccampaign=s.getQueryParam('cpccampaign');
    let glcid=s.getQueryParam('glcid');
    s.campaign=cpcsource + "|" + cpcmedium + "|" + cpccampaign + "|" + glcid;
      if(s.campaign === "|||"){s.campaign = ""};
    };&lt;/PRE&gt;&lt;P&gt;There are other ways to optimise your code, especially since you're using Adobe Launch. But the above should suffice.&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 02:39:13 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453391#M37522</guid>
      <dc:creator>yuhuisg</dc:creator>
      <dc:date>2022-05-26T02:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453419#M37527</link>
      <description>&lt;P&gt;Don't use the getQueryParam plugin, Adobe Launch provides you the capability to get query params using default Core extension "Query String Parameter" data element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create one data element for each and then use _satellite.getVar('dataElementID')&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 07:56:37 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453419#M37527</guid>
      <dc:creator>Alexis_Cazes_</dc:creator>
      <dc:date>2022-05-26T07:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453657#M37556</link>
      <description>&lt;P&gt;Thank you so much!! This is super helpful to use&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;"Query String Parameter" data element. And, creating data element for each.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 13:49:17 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453657#M37556</guid>
      <dc:creator>asheth2295</dc:creator>
      <dc:date>2022-05-27T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453658#M37557</link>
      <description>&lt;P&gt;Thank you. That's very helpful to use without s object.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 13:50:16 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/453658#M37557</guid>
      <dc:creator>asheth2295</dc:creator>
      <dc:date>2022-05-27T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: utm tracking through Adobe Launch custom code</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/540328#M38635</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17442621"&gt;&lt;/LI-USER&gt;&amp;nbsp;how did you map the data element?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 17:08:06 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-analytics-questions/utm-tracking-through-adobe-launch-custom-code/m-p/540328#M38635</guid>
      <dc:creator>jsvasu</dc:creator>
      <dc:date>2022-08-10T17:08:06Z</dc:date>
    </item>
  </channel>
</rss>

