Skip to content

Commit 27662a0

Browse files
committed
Fix: mistake in auto assigning Pixel ID from config
1 parent a975963 commit 27662a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/pixel/src/lib/pixel.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class PixelService {
4545
* - Adds the script to page's head
4646
* - Tracks first page view
4747
*/
48-
initialize(pixelId?: string): void {
48+
initialize(pixelId = this.config.pixelId): void {
4949
if (this.isLoaded()) {
5050
console.warn('Tried to initialize a Pixel instance while another is already active. Please call `remove()` before initializing a new instance.');
5151
return;

0 commit comments

Comments
 (0)