Just install and use ???? Simple Google Tag Manager (GTM) or Universal Google Analytics plugin. After added Google Analytics ID – select where show your code in Head or Footer section. Add Events for Contact Form 7 plugin