I am wanting to limit specific content on the homepage based on user segment.
I do this based on tags in a different area by using this javascript:
var userTags=HelpCenter.user.tags;
//check if any tags are returned. If no tags defined, print to console.
if (userTags.length!=0)
{
//if tags are found, start iterating through using a for loop.
for(var i = 0; i < userTags.length; i++ )
{
//check for the require tag.
if (userTags[i] === 'emergencycontact')
{
//unhide link
$('div.emergencylink').show();
$('div.nopostrights').hide();
}
}
}
});
Anyone have thoughts on how I can achieve something similar for an organization or user segment? I really don't want to manually tag 325 users.
Hey Michael,
It looks like you haven't received a response on this post. I'm rather limited on what I can assist with from my end, but I did want to double-check with you to see if you're still running into the same issue.
If so, any chance you could provide the code you're using so far? This may help other community members get a better understanding so they can assist further.
Thanks!