Your problem
My problem is: I want to display a focus item based on a few criteria, so I insert it inside a campaign.
The campaign is: Segment > Page Visit > Action: Display Focus Item.
I can see in the contact details that the Campaign portion of it is being processed, however the focus item does not load on the page.
If I go to the landing page and manually add the focus item’s javascript, the focus item loads just fine. It simply won’t load via the campaign.
Steps I have tried to fix the problem: I created several times different contacts, landing pages, segments and campaigns, but still it doesn’t work.
Hi, mikew I am testing from a different machine in which is using a different network. I see that the campaign action is triggered but the Focus item does not show. I do not see any errors in my log.
Just to let you know further that I am aiming to show different focus items for different segments and I leaned from the informations available online that it is possible to do that through Campaigns, hence I did not copy the focus installation code in my website. Or is it required that I copy the focus installation code?
Thanks a lot for the support! It would be a great help if you or anyone could help me solve this problem.
If you don’t copy the focus item script to your page that is totally fine. Your tracking script will fire the right cofust item.
The focus item will show only once with your setting and then wait’s for your decision.
In order to understand what happens is to look at the campaign events:
If you want to show the focus item more, you need to make a jump in the campaign back to ‘visit’s page’. Here is a video about how to do it from a previous Lagos Meetup.
Thank you robm, I am not using any pop-up blocker in my web browser, still no focus item is showing however from the contacts log I can see that the campaign action triggered.
HI joeyk, Thank you for your kind information, from your post my one of my confusion is solved that I do not have to copy the focus tracking code in my website when I am trying to show focus item through Campaign.
I have created a segment based on web page visit. An anonymous contact gets into the segment after visiting a certain page more that 3 times lets say. In my campaign I have taken the segment in the beginning and set up on showing focus item after visiting the same page.
So far, the campaign triggers but the focus item does not show.
What am I doing wrong here? I have been stuck for a couple of weeks on this same problem. Let me know if you need any further infos. Thanks in Advance.
So now when I am calling the focus item through the campaign I can see in the console that it is unable to load the focus item [Failed to load resource: the server responded with a status of 404 (Not Found)] https://mymautic.com/focus/4.js
I am running mautic on Ubuntu 20.4 with Nginx Server.
As far as I know that file is responsible about rewriting path (besides nginx settings). You should look for “nginx rewrite index.php htaccess” searches in Google.