# Dynamic Content

**URL:** https://forum.mautic.org/t/dynamic-content/7728
**Category:** General Discussion
**Created:** [March 1, 2017, 12:03pm UTC](https://forum.mautic.org/t/dynamic-content/7728 "2017-03-01T12:03:52Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 1, 2017, 12:03pm UTC](https://forum.mautic.org/t/dynamic-content/7728/1 "2017-03-01T12:03:52Z")

</div>

Hi there,  
  
  
  
I know there is a ton of threads regarding dynamic Content - but I haven´t found one with a solution. So here is my Problem:  
  
  
  
I´ve been playing around with dynamic Content. I read the documentation and watched the Video on YouTube. I tried to rebuild the example form the Video. This is what I´ve done:

1. Created dynamic Content - named “test” - it´s the only dynamic Content I have…  
2. created a campaign, based on segments, for the Segment “dynamic” there is push/pull dynamic Content Action, without any conditions. Dynamic Content requests Slot “slot2”  
3. chucked myself and a couple of other leads into the Segment “dynamic”  
4. Setup a simple landing page an include the following code:

Code:

unknown visitor 

The code is not right - I can´t Close the 

. If I add

 at the end the code afterwards turns red....  
5. Logged out of mautic and visited the page, tried different Browsers =\> same result, no dynamic Content is shown  
  
  
I don´t get it - I know that the code is wrong, because I can´t close the 

. I tried leaving that out, no changes. I treid several Solutions from other threads... but I don´t get anywhere with it.  
  
I am using one of the free demo accounts to Play around...  
  
Any tips, tricks, help or yelling because I made a simple mistake? ![;-)]( ";-)")  
  
Thanks in advance,  
  
Chili\_666  
P.S. sorry about the funky spelling, but IE here at work has it´s own mind when it Comes to speaking english...

---

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 1, 2017, 12:03pm UTC](https://forum.mautic.org/t/dynamic-content/7728/2 "2017-03-01T12:03:52Z")

</div>

Hi there,

I know there is a ton of threads regarding dynamic Content - but I haven´t found one with a solution. So here is my Problem:

I´ve been playing around with dynamic Content. I read the documentation and watched the Video on YouTube. I tried to rebuild the example form the Video. This is what I´ve done:

1. Created dynamic Content - named “test” - it´s the only dynamic Content I have…
2. created a campaign, based on segments, for the Segment “dynamic” there is push/pull dynamic Content Action, without any conditions. Dynamic Content requests Slot “slot2”
3. chucked myself and a couple of other leads into the Segment “dynamic”
4. Setup a simple landing page an include the following code:

`<p class="lead" />
                    <div class="mautic-slot" data-slot-name="slot2">unknown visitor
                    </div>`  
The code is not right - I can´t Close the

. If I add

 at the end the code afterwards turns red…  
5. Logged out of mautic and visited the page, tried different Browsers =\> same result, no dynamic Content is shown

I don´t get it - I know that the code is wrong, because I can´t close the

. I tried leaving that out, no changes. I treid several Solutions from other threads… but I don´t get anywhere with it.

I am using one of the free demo accounts to Play around…

Any tips, tricks, help or yelling because I made a simple mistake? 😉

Thanks in advance,

Chili\_666  
P.S. sorry about the funky spelling, but IE here at work has it´s own mind when it Comes to speaking english…

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [March 1, 2017, 1:26pm UTC](https://forum.mautic.org/t/dynamic-content/7728/3 "2017-03-01T13:26:42Z")

</div>

This is the code

```auto
<div class="mautic-slot" data-slot-name="slot2">Text in the html - this shows up if the visitor is not known</div>
```

---

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 1, 2017, 2:38pm UTC](https://forum.mautic.org/t/dynamic-content/7728/4 "2017-03-01T14:38:45Z")

</div>

Thanks for the code… but still, I can´t get the dynamic Content to show. This is what my landing page code Looks like:

[code]

 {pagetitle} 

| 

  

## Hello there!
  

Text in the html - this shows up if the visitor is not known 
  
  
  

 |

 [/code]

My campaign is:

source: Segment “dynamic” which includes 71 contacts  
pull dynamic Content: requested Slot:slot2, Content:Test  
push dynamic Content: Content:Test

Anything else? I simply don´t see what´s wrong…

---

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 1, 2017, 3:38pm UTC](https://forum.mautic.org/t/dynamic-content/7728/5 "2017-03-01T15:38:16Z")

</div>

I´ve just been playing around a bit… it couldn´t be an issue regarding the tracking of visitors?

As I said I am running on a demo account, so I wouldn´t think so… I was just wondering because if I try to use {contactfield=lastname} or any other token in the landing page it doesn´t work as well…

Cheers,

Chili\_666

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [March 1, 2017, 3:40pm UTC](https://forum.mautic.org/t/dynamic-content/7728/6 "2017-03-01T15:40:24Z")

</div>

what is a demo account?

---

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 1, 2017, 3:47pm UTC](https://forum.mautic.org/t/dynamic-content/7728/7 "2017-03-01T15:47:56Z")

</div>

Sorry, I am using a free .mautic.net account…

---

<div class="post-metadata">

### Author: ![Mauro\_Pontara](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@Mauro\_Pontara](https://forum.mautic.org/u/Mauro_Pontara)
#### Post date: [March 1, 2017, 3:57pm UTC](https://forum.mautic.org/t/dynamic-content/7728/8 "2017-03-01T15:57:36Z")

</div>

Same for me i try with joomla and wordpress and it doesnt work

---

<div class="post-metadata">

### Author: ![chili\_666](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@chili\_666](https://forum.mautic.org/u/chili_666)
#### Post date: [March 3, 2017, 9:31am UTC](https://forum.mautic.org/t/dynamic-content/7728/9 "2017-03-03T09:31:58Z")

</div>

_up_

I am using the dynamic Content on a mautic generated landing page…

---

<div class="post-metadata">

### Author: ![fungiblecommodity](https://avatars.discourse-cdn.com/v4/letter/f/76d3ee/32.png) [@fungiblecommodity](https://forum.mautic.org/u/fungiblecommodity)
#### Post date: [June 29, 2017, 10:22am UTC](https://forum.mautic.org/t/dynamic-content/7728/10 "2017-06-29T10:22:34Z")

</div>

Yes this doesn’t work for me either - asked on slack and didn’t receive a solution.

---

<div class="post-metadata">

### Author: ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)
#### Post date: [June 29, 2017, 11:55am UTC](https://forum.mautic.org/t/dynamic-content/7728/11 "2017-06-29T11:55:11Z")

</div>

Dynamic content has some problem in v2.8.1. and v2.8.2 waiting for v2.9.0 for the fix will be released soon.

---

<div class="post-metadata">

### Author: ![arrfonseca](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@arrfonseca](https://forum.mautic.org/u/arrfonseca)
#### Post date: [December 12, 2017, 12:41am UTC](https://forum.mautic.org/t/dynamic-content/7728/12 "2017-12-12T00:41:20Z")

</div>

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. Maybe its a similar issue and worth a try. If you’re not using wordpress just check if your website has CORS enabled, just found out CORS is required both in Mautic config and and in the target website where DWC will be published.
