Pay no attention to the president’s company-focused Twitter rants.

That is the advice being given by market experts to investors, notably in Amazon.com Inc. AMZN, +5.69% , after repeated tweets by President Donald Trump against the company.

Last week, he tweeted that he had “concerns” with the online retail giant, charging that Amazon isn’t paying its fair share of taxes and that it was hurting the U.S. Postal Service. He repeated this idea in a tweet on Saturday, charging that the Post Office “will lose $1.50 on average for each package it delivers for Amazon. That amounts to Billions of Dollars.”

This idea has been refuted by analysts and Federal regulators; on Monday, Trump tweeted that “only fools or worse” say the Post Office makes money with Amazon.

These instances are merely the latest example of Trump singling out a specific stock for condemnation on Twitter, and while Amazon fell 3.4% on Monday — continuing the trend of stocks declining following such statements — analysts said the tweets could be safely ignored and shouldn’t be the only factor traded on.

“Trump is way more bark than bite. Eighty percent of what he says never happens, and the other 20% is usually an opening gambit that’s way out of left field,” said Charlie Smith, chief investment officer at Pittsburgh-based Fort Pitt Capital Group.

He admitted that tweets like this “can throw the market for a loop,” but said it was extremely unlikely that the tweets represented an opening salvo in a conflict that would eventually manifest itself as legislation that might meaningfully hurt the company’s business over the long term.

On Thursday, following the first Trump tweet, shares of Amazon fell as much as 4.6%, though they subsequently returned to positive territory, closing up 1.1% on the day.

The tweets didn’t give any indication about what steps Trump might take to address the issues he sees with Amazon, or even whether he was planning anything concrete. Doing anything might be difficult, as both of Trump’s allegations are seen as unsubstantiated: the post office makes money off Amazon, and a recent New York Times report indicated that Amazon is “collecting sales tax in every state that has one.” On Wednesday, the White House said it had no specific policies or actions that were being considered against Amazon.

“ ‘Trump is way more bark than bite. Eighty percent of what he says never happens, and the other 20% is usually an opening gambit that’s way out of left field.’ ” — Charlie Smith, Fort Pitt Capital Group

Thursday’s tweet wasn’t the first time Trump has called out Amazon. On Wednesday, the news service Axios reported that the president has wondered aloud if there was any way to “go after” the company, which is run by Jeff Bezos. Bezos also owns the Washington Post, a publication Trump has criticized, and which he has repeatedly referred to as the “Amazon Washington Post.”

In another Saturday tweet, Trump described “the Fake Washington Post” as being part of Amazon’s “lobbying staff.”

Amazon is also not the first company to be singled out by Trump in ways that resulted in a share price drop. Boeing Co. BA, +0.28% fell in December 2016—after Trump’s election but before the inauguration—after he threatened to cancel an order with them over Twitter. The president also tweeted negatively about General Motors GM, -1.86% , for producing the Chevy Cruz in Mexico; about Lockheed Martin Corp. LMT, +2.32% for the price of its F-35 stealth jet fighter; and about Nordstrom Inc. JWN, -2.03% , for dumping the fashion label of his daughter Ivanka.

Don’t miss:Trading Trump tweets can leave investors both poorer and sad

Nothing concrete materialized after these tweets and the effect on the stocks proved short lived. In some cases, the stocks shrugged off the tweets in dramatic fashion, sharply outperforming the broader market. Boeing is up more than 80% over the past 12 months, far exceeding the 12% rise of the S&P 500 SPX, +1.05% over that same period. Lockheed is up 27% over the past year.

Read more:Why the stock market is so quick to recover from the turmoil Trump creates

“ ‘If you’re a short-term trader, then you’ll pay attention to stuff like this. But the longer your investment horizon, the less you should care about this kind of noise. The only question Amazon investors should be asking themselves right now is, do you still think Amazon is a good company?’ ” — JJ Kinahan, TD Ameritrade

“It’s amazing how people fall for this every time,” said JJ Kinahan, chief market strategist at TD Ameritrade, referring to the post-tweet drop in Amazon’s stock. “One thing that gets lost is how he comes out with a big statement, people get riled up, and then he does something more pragmatic or nothing happens at all.”

The strategist said a similar trend was seen in a recent Trump announcement about steel and aluminum tariffs—an issue that was seen as having a more concrete influence on corporate profits. While Trump’s initial comments indicated a hard-line approach, Treasury Secretary Steven Mnuchin subsequently suggested any tariffs might not apply to Canada or Mexico.

“The mistake a lot of investors make is that they don’t know what time frame they want to hold a stock for,” Kinahan said. “If you’re a short-term trader, then you’ll pay attention to stuff like this. But the longer your investment horizon, the less you should care about this kind of noise. The only question Amazon investors should be asking themselves right now is, do you still think Amazon is a good company?”