Discussions
How to pick up Segments that I push via Javascript?
about 5 years ago by Joseph Kiefer
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?