panphp / pan

A simple, lightweight, and privacy-focused product analytics php package
MIT License
1.07k stars 48 forks source link

Warning in the console if same name pan elements are available on the page. #13

Open msamgan opened 1 month ago

msamgan commented 1 month ago

The current behavior of the package takes the last element on the page into consideration, ignoring all others. But the user doesn't know if by mistake that happened.

This PR will give the user a warning in the console if any pan element has the same name. It's a warning because the package must have broken it would have been an error.

On-Page image

In Console. image