We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a975963 commit 27662a0Copy full SHA for 27662a0
projects/pixel/src/lib/pixel.service.ts
@@ -45,7 +45,7 @@ export class PixelService {
45
* - Adds the script to page's head
46
* - Tracks first page view
47
*/
48
- initialize(pixelId?: string): void {
+ initialize(pixelId = this.config.pixelId): void {
49
if (this.isLoaded()) {
50
console.warn('Tried to initialize a Pixel instance while another is already active. Please call `remove()` before initializing a new instance.');
51
return;
0 commit comments