Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David McGawn 37 posts 150 karma points
    Nov 29, 2016 @ 10:14
    David McGawn
    0

    Persistance

    Hi, even though my persistence is set to None i still get stuck in the same segment, just wondering what i am doing wrong. I have setup a grid to show text for desktop user and video for mobile user and i have just used the chrome developer tools responsive to test it, at first it was fine on the desktop view it showed the text and then when i turned to mobile mode it showed the video but when i go back to desktop mode it sticks on video.

    Any help would be much appreciated :-)

    Thanks

    David

  • Adam Peter Nielsen 18 posts 222 karma points
    Nov 29, 2016 @ 10:44
    Adam Peter Nielsen
    100

    Persistence none goes for the entire session as far as I remember.. = chromes dev tools will not kill the cookie/reset persistence. :)

    If you open incognito mode, set it to mobile and the visit the site, you should end up in the mobile segment.

    or kill the cookie then reload.

    If everything is set up correctly you should only experience this bug in dev. tools. and not on a real phone. :)

    Another cause of the problem can be that you set persistence after your initial cookie was set. So if persistence was set to permanent at your first visit, it will be permanent forever.

    look for the cookies that start with ncbt_segment and kill off your segment cookie to try over. :)

    enter image description here

  • David McGawn 37 posts 150 karma points
    Nov 29, 2016 @ 10:49
    David McGawn
    1

    Brilliant Adam the Dev tools cookie never even crossed my mind, brilliant plugin just getting to grips with what it fully can do before we start using it, got another quick question, see if we are swapping out standard fields we already use for footprint ones is there an easy way to do it without loosing the content?

    Thanks

    David

  • Adam Peter Nielsen 18 posts 222 karma points
    Nov 29, 2016 @ 11:27
    Adam Peter Nielsen
    0

    Hi David

    We considered a conversion/property migration mapping thing in the custom section, but never got around to do it. Sorry.

    If it is only a few pages i recommend adding the footprint property as a new property and then move content manually or via a bit of angular when you load the pages in the backend. + add a quick check in the view to display the footprint data if it is entered.

    Alternatively you could hook into the ContentService.Published event, do a republish entire site and move it that way. Again it depends how much content you need to move... It might be cheaper to move it manually. :)

    I know it is a bit of a hack but it works for minor transitions. + You will still have the original data if you decide to remove footprint.

    For our own site we did a small script that moved the data on affected doctypes. but I am pretty sure we threw the script out afterwards...

  • David McGawn 37 posts 150 karma points
    Nov 29, 2016 @ 11:34
    David McGawn
    0

    Thanks for the quick reply Adam,

    Yeah that is what i was thinking of doing with the new field and then move the content and just wrap the 2 outputs in the code in an if statement to check if the old field still has content and if it does just use that still and if it contain nothing use the new footprint field.

    Is there any documentation or examples of custom properties that people or yourself have used. i am just trying to get as much cool stuff in a test environment that the higher up people in the company go for it as the chosen solution as me personally love it. its a well built plugin and easy to use for content editors etc..

    Thanks

    David

  • Adam Peter Nielsen 18 posts 222 karma points
    Nov 29, 2016 @ 11:44
    Adam Peter Nielsen
    0

    Hi David

    It is nice to know people like and use the plugin.

    No, sorry we do not have any shippable custom editors at the moment. The data/model is pretty open so it should be rather easy to use the segments in custom editors as well - but no, we do not have any that are finished in any demo-able way. Sorry.

    Adam

Please Sign in or register to post replies

Write your reply to:

Draft