asked    Ellis     2018-07-24       javascript       111 view        1 Answer

[SOLVED] How do you change Advanced Matching Personal info after init FB Pixel with other info?

After initializing the Facebook Pixel with personal information for Advanced Matching, are you allowed to change the personal information for Advanced Matching? This is for a Single Page Application. I tried to initialize the Facebook Pixel again with new personal information, and the pixel still was reporting the original Advanced Matching info that I initialized with.

For example, we would run:

window.fbq('init', <FACEBOOK_ID>, { em: <email> });

On a later page we get more information about them, so we would run:

window.fbq('init', <FACEBOOK_ID>, { em: <email>, st: <state> })

The new infomation, in this example state info, is not being reported.

  1 Answer  

        answered    Vita     2018-07-24      

As you are using single page application so you have to do init again, This is not possible to append the advance parameter.

window.fbq('init', <FACEBOOK_ID>, { em: <email>, st: <state> })

Facbook always fire the event after initializing the pixel so in your first line code call was already sent to faecbook and that's fire. Now if you want to send another parameter then you have to send the call to facebook again with init.

Your Answer

 2018-07-24         Susanna

Angular2 Router error: cannot find primary outlet to load 'HomePage'

I just started using the new routing library (@angular/router v3.0.0-alpha.7) but following the official docs leads to error below:browser_adapter.ts:74: EXCEPTION: Error: Uncaught (in promise): Error: Cannot find primary outlet to load 'HomePage'Question is - how do I get rid of the error and make the router behave as expected? Have I missed a setting?(Same error appears when using the alpha.6 version.)app.component.tsimport { Component } from '@angular/core';import { ROUTER_DIRECTIVES } from '@angular/router';@Component({ selector: 'app', template: ` <p>...
 angular                     3 answers                     108 view
 2018-07-24         King

Changing the default name of "router-link-active" class by writing a custom directive that adds new class

I would like to use Semantic UI in my Angular2 application. The problem is that I can't find a router setting that changes the default name of "router-link-active" class. I need it to be called just "active" to make menus display properly.As I understand, such setting doesn't exist. I've seen it in Vue.JS so I expect it to be there too. Is it a good idea to ask developers to fix this?So. We need to write a custom directive that adds "active" class to all DOM elements with "router-link-active" class, but I've got some problems here too.There is a similar question but the ans...
 typescript                     2 answers                     102 view
 2018-07-24         Valentine

Domain name for my PC: how to (tried No-IP, DuckDNS and ngrok)

I want: ping server on my PC by it domain name from remote.I have: DynDNS services DuckDns (or No-IP, config in no-ip is even harder). It gets me an IP and (sub)domain To configure DuckDNS on PC I need just specify some token and my domain name (my_domain). Also I've launched server on lacalhost:3000. Also when I go to CanYouSeeMee it says that my IP is (that's good).And I configured static IP for my PC (let's say 200.300.1.15)And Setting port forwarding for with help of Port Forwarding Wizard (Port=3000, Protocol=...
 dns                     5 answers                     103 view