Closed trevorgehman closed 8 years ago
How would I check for the existence of an event in the session bag before rendering the GA code? The reason for this is I'm not using GA throughout, only to track one specific event and I'd rather not include GA on every page if it's not necessary.
You have to check manually right now. Maybe a service injected in the blade template would be possible.
How would I check for the existence of an event in the session bag before rendering the GA code? The reason for this is I'm not using GA throughout, only to track one specific event and I'd rather not include GA on every page if it's not necessary.