I need to add <body> code in Cart and Checkout page

Hello everyone
I need to add google tag code in between section of cart and checkout page, but my

cart.liquid file looks like this

{% comment %}
The contents of the cart.liquid template can be found in /sections/cart-template.liquid
{% endcomment %}

{% section 'cart-template' %}

and cart-template.liquid file looks like this

How to add code here ?

Looking forward to your help

@admahmud

Add on theme.liquid file,

Its changing the layout of the site

@admahmud

Google tag code can’t change the layout of your Site,
You are adding in the wrong way, Learn about how to add Google tag code?

or hire a developer.
Kindly check out this link,
https://www.getelevar.com/how-to/google-tag-manager-shopify/

https://help.shopify.com/en/manual/reports-and-analytics/google-analytics/google-tag-manager
thank you.

Thank you, Let me check

@admahmud - add your code before in theme.liquid file and check