Added analytics to embedder