title: Offers / experiences not visible on Publish instance using contexthub for personalization on AEM 6.2
body: <p>I’m using AEM’s default targeting to add an experience for a user. I’m using “gender equals male” as a simple trait to try the sample text to show up.</p>
  
  <p>I’ve setup to create an experience for logged in users to see different TEXT based on their gender (as an example). And on Publishing the content and login into to our portal on Publish, I cannot see the experience (a different text should appear). Not even the default would appear.</p>
  
  <p><a href="https://i.stack.imgur.com/5EBKf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5EBKf.png" alt="enter image description here"></a></p>
  
  <p>Few observations:</p>
  
  <ol>
  <li>On Author i can see the Audience traits under /etc/segmentation/contexthub/my-audience but the same is not there on Publish instance. I'm assuming this will be published along with the page, but is not happening.</li>
  <li><p>If the logged-in user does not have permission to /content/campaigns, then i see this error in the logs. If i give permissions then i do not see. Can i assume the component is loading? </p>
  
  <pre><code>2017 03:01:22.427 *WARN* [192.150.10.207 [1498374082395] GET /content/brand/en-us/emp.html HTTP/1.1] com.day.cq.personalization.impl.AreaServiceImpl Area at /content/campaigns/ups/master not found or not accessible.
  </code></pre></li>
  <li><p>If we look at the page source, we see the below. "campaignName" is empty?</p>
  
  <pre><code>&lt;div class="target parbase"&gt;
      &lt;script type="text/javascript"&gt;
          if (window.ContextHub &amp;&amp; ContextHub.SegmentEngine) {
              ContextHubJQ(function() {
                  ContextHub.SegmentEngine.PageInteraction.Teaser({
                      locationId: '_content_brand_en-us_comms_jcr_content_searchpar_title_631229628',
                      variants: [{"path":"/content/brand/en-us/comms/default","name":"default","title":"Default","campaignName":"","thumbnail":"/content/brand/en-us/comms.thumb.png","url":"/content/brand/en-us/comms/_jcr_content/searchpar/title_631229628.default.html","tags":[]}],
                      strategy: 'first',
                      trackingURL: null
                  });
              });
          }
      &lt;/script&gt;
      &lt;div id="_content_brand_en-us_comms_jcr_content_searchpar_title_631229628" class="campaign "&gt;
        &lt;noscript&gt;&lt;div class="default title"&gt;
        &lt;div class="ups-title"&gt;
          &lt;h1 class="title-text"&gt;Default Title&lt;/h1&gt;
        &lt;/div&gt;
       &lt;/div&gt;
       &lt;/noscript&gt;
  &lt;/div&gt;
  </code></pre></li>
  <li><p>We are enabling the below url's through Dispatcher.</p>
  
  <pre><code>/0024 { /type "allow" /url "/etc/segmentation.segment.js" }
  /0025 { /type "allow" /url "/etc/clientcontext*" }
  /0026 { /type "allow" /url "/libs/cq/personalization/components/clickstreamcloud/content/config.json" }
  /0027 { /type "allow" /url "/libs/wcm/stats/tracker.js" }
  /0028 { /type "allow" /url "/libs/cq/personalization/*" }
  /0062 { /type "allow" /glob "* /libs/cq/personalization/*" }  # enable personalization
  </code></pre></li>
  </ol>
  
  <p>What am i missing?</p>