We have a store, we established the products and their links like: example.com/product/P_name?PID=1&CID=2
PID=Product ID CID= Category ID
We established the products with these parameters and added these links as internal links to track them on Google Analytics
also, these links have a canonical to the non-parametrized links example.com/product/P_name
but there's an issue: when the user enters the canonical links from Google, we can't track them because he enters the link without a parameter like this: example.com/product/P_name
My question: does this criteria is ok for SEO? or there're good alternatives for it. please, give me the best practices in this case