How to pick up Segments that I push via Javascript?

Posted in General by Joseph Kiefer Fri Mar 30 2018 15:54:38 GMT+0000 (Coordinated Universal Time)·Viewed 805 times

I am pushing a segment via Javascript but it is not picking up in my account. I currently do not have any segments. Do I need to create one in order for it to pick it up? I thought maybe this is the case, BUT it looks like I MUST create a filter. Why do I need to do that if I have decided that already via my javascript code? So when I try to use the filter and I select "javascript variable", this cannot work because I do not have that option in the API code. I am using this. _pcq.push(['addSubscriberToSegment', 'Accounting']); No variable, just the segment itself. So how does this work?
  
Markdown is allowed