Home › Forums › Support › inserting Google analytics and AdSense code This topic has 9 replies, 4 voices, and was last updated 3 years, 2 months ago by Ying. Viewing 10 posts - 1 through 10 (of 10 total) Author Posts January 9, 2023 at 12:24 am #2488490 Manoj Kumar Hello, How can I insert Google analytics, AdSense code or any js code into desired place without using any other third party plugin. Please help me with this. Thank You January 9, 2023 at 1:07 am #2488516 Fernando Customer Support Hi ManoJ, You can use a Hook Element. You can add <script> tags there. Reference: https://docs.generatepress.com/article/hooks-element-overview/ Here’s the hooks visual guide: https://docs.generatepress.com/article/hooks-visual-guide/ If the hook isn’t available, you can create one. Example: https://generatepress.com/forums/topic/hooks-related-question/#post-2170598 January 10, 2023 at 9:01 am #2490420 Manoj Kumar Hello, Thanks for your reply. How can I place AdSense code between paragraphs. Thank You January 10, 2023 at 5:46 pm #2490784 Fernando Customer Support To clarify, do you want to add your code after all Paragraph Blocks? Or, do you want to place them manually between specific Paragraphs only? January 11, 2023 at 2:29 am #2491087 Manoj Kumar Hi, not after all paragraph but after specific paragraph. Thank You January 11, 2023 at 8:27 am #2491638 DavidStaff Customer Support Hi there, see Fernandos reply here: https://generatepress.com/forums/topic/is-there-a-way-to-manually-place-an-adsense-ad-every-3-paragraphs/#post-2440210 January 11, 2023 at 1:35 pm #2491972 Manoj Kumar Hello, I need to set different AdSense Code for Desktop and Mobile using Hook element. Also let me know I can display Ad in center. Please help me in this. Thank You January 11, 2023 at 1:58 pm #2491999 YingStaff Customer Support You can try this solution: https://generatepress.com/forums/topic/add-element-with-shortcode-and-diplay-it-just-in-mobile/#post-2480107 But also be aware of the side effect: https://generatepress.com/forums/topic/add-element-with-shortcode-and-diplay-it-just-in-mobile/#post-2480635 January 11, 2023 at 2:08 pm #2492009 Manoj Kumar Thank You Is there any way so that I can align Ads in center instead of left or right? Thank You January 11, 2023 at 2:22 pm #2492026 YingStaff Customer Support Can I see the ads? Author Posts Viewing 10 posts - 1 through 10 (of 10 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In