Mautic Community Forums

Dynamic Content, why won't you work!

Hello all,

After spending too many hours banging my head on dynamic content on landing pages to no avail, I’m seeking the community’s help.

I’m not sure what is going wrong / why it is not working. No errors, no nothing. Everything seems to be as it should.

Yet, the Dynamic Content is not showing at all.



My template HTML code has the following area reserved for Dynamic Content:

Code:
{# This area will be targeted for dynamic content. #} {# You can put Default Content here to shows if the visitor is not known. #}

Likewise, in my campaign, I'm requesting Dynamic Content for the "dwc" slot.
Screen shot attached.
DynCon-Campaign.png
I've tried several variants trying to get it to work, from firing off a form to CRON off contact. Screen shot has Form setting Segment & Stage, then rest of campaign is firing off Contact Segment. Or at least it should if it worked.
Can someone offer me some advice on this? I feel so close on this, and at this point think it's one of two things:
1) I've got it coded wrong. Totally possible. Would like someone to confirm that if possible.
2) Dynamic Content is not working right. It'd save me a lot of heartache and time if I knew this. I saw this on another thread

Suggestions?
I'm running 2.8.2
Upgraded to 2.9.1 and it doesn't work there either?

Hello all,
After spending too many hours banging my head on dynamic content on landing pages to no avail, I’m seeking the community’s help.
I’m not sure what is going wrong / why it is not working. No errors, no nothing. Everything seems to be as it should.
Yet, the Dynamic Content is not showing at all.

My template HTML code has the following area reserved for Dynamic Content:

<div id="body" data-section-wrapper="2" class="full">  
  <div data-section="2">
    <div data-slot-container="2">
     <div class="mautic-slot" data-slot-name="dwc">
    {# This area will be targeted for dynamic content. #}
      {# You can put Default Content here to shows if the visitor is not known. #}
     </div><!--/data-slot-name="dwc"-->
   </div><!--/data-slot-container="2"-->
  </div><!--/data-section="2"-->

Likewise, in my campaign, I’m requesting Dynamic Content for the “dwc” slot.
Screen shot attached.

I’ve tried several variants trying to get it to work, from firing off a form to CRON off contact. Screen shot has Form setting Segment & Stage, then rest of campaign is firing off Contact Segment. Or at least it should if it worked.
Can someone offer me some advice on this? I feel so close on this, and at this point think it’s one of two things:

  1. I’ve got it coded wrong. Totally possible. Would like someone to confirm that if possible.
  2. Dynamic Content is not working right. It’d save me a lot of heartache and time if I knew this. I saw this on another thread

Suggestions?
I’m running 2.8.2
Upgraded to 2.9.1 and it doesn’t work there either?

I have the same problem, fighting this for the last 5 days n 0 results, requested help in different places and got 0 responses. sounds like mautic experts have no idea how this dynamic content works :slight_smile:

my use case:

My head exploded after 3 days of fighting with dynamic content, need your help! Please!

I have created a
https://mautic.slack.com/files/kedar/F6J1AGQGM/dynamic_content_problem.png

Campaign form
Successful Submit Action: Redirect URL to second landing page with dynamic content data slot
Field: name, email, resident (city)

Landing pages
los-gatos-invite: initial landing page with form
dynamicdeal: second landing page with dynamic content data slot

placeholder for dynamic content

Dynamic Content:
[Rebate] with rebate text
[Coupon] with coupon text

Campaign
ContactSource: campingform: [losgatos_camping]
Request dynamic content: Slot: [lg1] ; Default content: [Coupon]
Form field value: limit to forms: [losgatos_camping]; Field [I’m resident] [equals] [Los Gatos]
Push dynamic content: select dynamic content [rebate]

upon form submit in I see new contact in contacts and after redirection on second landing page with dynamic content data slot I only see placeholder text from landing page. (edited)

Thanks dimas,
I’m planning to test in 2.7 to see if it worked in that version.
Also planning to test 2.9.2 version as well.
Will let you know my findings.

Seems like Dynamic Email content and Dynamic Landing page content are two entirely different things.
Email does seem to work.
Dedicated Dynamic Content on landing pages does not work for me running as campaign like the docs illustrate.
I agree, this has nearly made my head explode until I reached this point we’re at now — solve it on the forums.
I hope we can get this resolved.

Not sure if it makes any difference whatsoever, but maybe try entering the number 1 in your data-slot-container?

<div data-slot-container="1">

Had a similar issue with version 12.1 and could solve that by enabling CORS in my .htaccess file in the root of Wordpress install. Just realized that you need CORS enabled on both ends, not only in Mautic config. Maybe its a similar issue and worth a try.