You can record script in Google Chrome Browser with an add on from Blazemeter. Follow below steps for this:
Step 1: Search for blazemeter chrome extension in "Chrome Web Store".
Step 2: Click on "Add to Chrome" button
Step 3: Click on "Add extension" from popup
Step 4: Extension will be installed and give you notification that its installed.
Step 5: Click on newly added extension on top right corner of your chrome browser. You must sign in to blazemeter before recording.
Step 6: Start recording.
Step 7: Open Your url and record activities.
Step 8: Stop recording.
Step 6: Click on Download Recording after selecting JMeter and your domain.
You are all set export recording to jmeter.